New Localization System Implemented :D
This commit is contained in:
parent
7816fb82b8
commit
3363c4561f
41 changed files with 468 additions and 428 deletions
|
|
@ -3,9 +3,8 @@ package MysticWorld.Items;
|
|||
import java.util.List;
|
||||
|
||||
import MysticWorld.MysticWorld;
|
||||
import MysticWorld.Reference;
|
||||
import MysticWorld.Lib.Strings;
|
||||
|
||||
import MysticWorld.Util.Reference;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
|
|
@ -34,6 +33,7 @@ public class ItemBushFruit extends ItemFood {
|
|||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
maxStackSize = 64;
|
||||
setAlwaysEdible();
|
||||
setUnlocalizedName("bushFruit");
|
||||
}
|
||||
|
||||
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer player)
|
||||
|
|
@ -139,13 +139,6 @@ public class ItemBushFruit extends ItemFood {
|
|||
{
|
||||
return 24;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
|
||||
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, 5);
|
||||
return super.getUnlocalizedName() + FRUIT_TYPES[meta];
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ public class ItemStaff extends Item
|
|||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean isFull3D()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,16 +23,25 @@ public class ItemStaffParts extends Item {
|
|||
|
||||
private static final String[] STAFF_PARTS = new String[] {"Staff", "Hilt", "Handle", "Head"};
|
||||
|
||||
public ItemStaffParts(int id) {
|
||||
public ItemStaffParts(int id)
|
||||
{
|
||||
super(id);
|
||||
this.setHasSubtypes(true);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
public String getUnlocalizedName(ItemStack itemStack)
|
||||
{
|
||||
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, 5);
|
||||
return super.getUnlocalizedName() + STAFF_PARTS[meta];
|
||||
return STAFF_PARTS[meta];
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean isFull3D()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@ package MysticWorld.Items;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import MysticWorld.Reference;
|
||||
|
||||
import MysticWorld.Util.Reference;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
|
|
|
|||
Loading…
Reference in a new issue