• 0

    posted a message on New Rendering Methods
    Quote from csb987»

    OK well I don't know I'm afraid. From what I can tell you've copied BlockTNT, EntityTNTPrimed and RenderTNTPrimed pretty faithfully and I can't see any obvious errors in any of those.


    You didn't appear to be registering the entity - in the preInit method of your mod class you're only calling EntityRegistry.registerModEntity for the grenade and not the other 2 entities you're calling RenderingRegistry.registerEntityRenderingHandler for (which should only be done on the client, by the way) - but registering the entity didn't make it render.


    OpenGL is not my strong point and I don't know much about how BlockRendererDispatcher works. Maybe somebody else will be able to help..




    Registering the entity seems like a good idea, LOL. I registered it, but it still is invisible. Do entity textures need JSONs?

    Posted in: Modification Development
  • 0

    posted a message on New Rendering Methods
    Quote from csb987»

    And the entity?


    The ResourceLocations look correct, so it's probably something else. Rendering issues with custom TNT blocks seem to be fairly common and at least one potential issue I've seen was the entity tracking range being set to zero during registration.


    If it's not that then I probably can't help you much further unless you want to put the code on GitHub or Dropbox or somewhere and I'll take a look, but even then no promises...


    I didn't understand anything you just said except GitHub :blink:

    Here: https://github.com/bignose956/Mod
    Posted in: Modification Development
  • 0

    posted a message on New Rendering Methods
    Quote from csb987»

    And the entity?


    The ResourceLocations look correct, so it's probably something else. Rendering issues with custom TNT blocks seem to be fairly common and at least one potential issue I've seen was the entity tracking range being set to zero during registration.


    If it's not that then I probably can't help you much further unless you want to put the code on GitHub or Dropbox or somewhere and I'll take a look, but even then no promises...


    I didn't understand anything you just said except GitHub :blink:

    Here: https://github.com/bignose956/Mod
    Posted in: Modification Development
  • 0

    posted a message on How to Make Custom Music Disk! (Working in 1.8.x)
    Quote from A7X_TheRev_A7X»

    i've done it all but i can't rename the folders
    how did you change there names


    If the folders are in a zipped file, just copy them out, rename them, copy them back in, and delete their original files.
    Posted in: Resource Pack Discussion
  • 0

    posted a message on New Rendering Methods
    Quote from csb987»

    And is it still rendering invisibly, or with the black and pink missing texture?


    Please could you post the code to show where you're registering the entity and the renderer?



    It still renders as invisible, and I haven't changed my registering method:

    RenderingRegistry.registerEntityRenderingHandler(EntityNuke.class, RenderNuke.FACTORY);
    Posted in: Modification Development
  • 0

    posted a message on New Rendering Methods
    Quote from csb987»

    Unlocalized names are different from registry names.


    I used the above as an example of how to create a ResourceLocation generally, but for your renderer you need a ResourceLocation which points to an entity texture that you can return as the result of getEntityTexture on line 94 of your rendering class, as UpcraftLP mentioned.


    If you look at one of the vanilla renderers in net.minecraft.client.renderer.entity, you can see (I'll use RenderCow as an example):

    private static final ResourceLocation cowTextures = new ResourceLocation("textures/entity/cow/cow.png");


    which is used in getEntityTexture like this:

    protected ResourceLocation getEntityTexture(EntityCow entity)
    {
     return cowTextures;
    }

    So you need to do the same thing - the only potential difference being that if you're using a texture of your own then the ResourceLocation should have two parameters instead of one - the first being your mod ID and the second being the path to the texture.


    I attempted both of the following, none worked.
    @Override
    	protected ResourceLocation getEntityTexture(EntityNuke entity) {
    		return new ResourceLocation(Ref.MOD_ID, "textures/entity/nuke/nuke_side.png");
    	}
    
    @Override
    	protected ResourceLocation getEntityTexture(EntityNuke entity) {
    		return new ResourceLocation("vt:textures/entity/nuke/nuke_side.png"); // vt is the mod id
    	}

    Posted in: Modification Development
  • 0

    posted a message on New Rendering Methods
    Quote from csb987»

    No they don't, the public constructors take strings.

    You're probably already indirectly using them when you call Block#setRegistryName, as that creates a ResourceLocation to identify they block. It's a combination of your mod id and a unique name for the thing being referenced (e.g. a block), which you can either provide as one string with the two elements being separated by a colon, or two strings.

    Examples:

    new ResourceLocation(MyMod.MODID, "myBlockName");
    new ResourceLocation("mymodid:myBlockName");




    So I do not need to specify a file path, or just the block's/item's unlocalized name?

    return new ResourceLocation(Ref.MOD_ID, VillagerBlocks.nuke.getUnlocalizedName().substring(5));
    Posted in: Modification Development
  • 0

    posted a message on New Rendering Methods
    Quote from UpcraftLP»

    you don't need to "upgrade to later versions", you're just returning "null" for your entity texture in line 94 of the pastebin. return the correct ResourceLocation there and you'll be fine.



    I am not familiar with the way ResourceLocations work. Would you give me an example? I attempted to look at it's source code, but the constructor required an object that extended an abstract class which implement an interface and so on. There was too much for me to wrap my mind around.

    Posted in: Modification Development
  • 0

    posted a message on New Rendering Methods

    I realized that the rendering methods have changed for 1.8, but I cannot figure out how to use them. I have successfully rendered throwable entities first by including a factory in the render class, then registering it in the main mod class using this method:

    RenderingRegistry.registerEntityRenderingHandler(EntityGrenade.class, RenderGrenade.FACTORY);

    But I cannot render regular entities. I tried the same methods but with no success, they render as invisible entities.


    My render class for the regular entity is here: https://pastebin.com/HtZBA2L1

    and the register method I used is as follows:

    RenderingRegistry.registerEntityRenderingHandler(EntityNuke.class, RenderNuke.FACTORY);

    So what exactly is the trick to rendering in these newer versions? (Please do not tell me to "upgrade" to later versions).

    Posted in: Modification Development
  • 0

    posted a message on Custom Projectile and Rendering

    Hmm, the rendering doesn't seem to work in 1.8.9. Any advice?

    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Where is the compass source code??
    Quote from Bright_Spark»

    Unfortunately I don't know since I use Idea. But tbh in this case of finding the item class for a compass, I'd search for a file named "ItemCompass" and if it doesn't exist, search for the word "compass" in the Item class.

    I tried searching the Item class for "compass", but the only thing there was a register code that used strings, so I couldn't trace it back the ItemCompass.java:
    /* 1533 */     registerItem(345, "compass", new Item().setUnlocalizedName("compass").setCreativeTab(CreativeTabs.tabTools));


    Item.java


    /*      */ package net.minecraft.item;
    /* */
    /* */ import com.google.common.base.Function;
    /* */ import com.google.common.collect.Multimap;
    /* */ import java.util.List;
    /* */ import java.util.Map;
    /* */ import java.util.Random;
    /* */ import java.util.UUID;
    /* */ import net.minecraft.block.Block;
    /* */ import net.minecraft.block.BlockDirt.DirtType;
    /* */ import net.minecraft.block.BlockDoublePlant.EnumPlantType;
    /* */ import net.minecraft.block.BlockFlower.EnumFlowerType;
    /* */ import net.minecraft.block.BlockPlanks.EnumType;
    /* */ import net.minecraft.block.BlockSand.EnumType;
    /* */ import net.minecraft.block.BlockSandStone.EnumType;
    /* */ import net.minecraft.block.BlockStoneBrick.EnumType;
    /* */ import net.minecraft.block.BlockWall.EnumType;
    /* */ import net.minecraft.block.state.IBlockState;
    /* */ import net.minecraft.client.gui.ScaledResolution;
    /* */ import net.minecraft.client.model.ModelBiped;
    /* */ import net.minecraft.creativetab.CreativeTabs;
    /* */ import net.minecraft.entity.Entity;
    /* */ import net.minecraft.entity.EntityLivingBase;
    /* */ import net.minecraft.entity.item.EntityItem;
    /* */ import net.minecraft.entity.item.EntityMinecart.EnumMinecartType;
    /* */ import net.minecraft.entity.player.EntityPlayer;
    /* */ import net.minecraft.entity.player.EntityPlayerMP;
    /* */ import net.minecraft.init.Blocks;
    /* */ import net.minecraft.init.Items;
    /* */ import net.minecraft.nbt.NBTTagCompound;
    /* */ import net.minecraft.potion.Potion;
    /* */ import net.minecraft.util.BlockPos;
    /* */ import net.minecraft.util.EnumFacing;
    /* */ import net.minecraft.util.MathHelper;
    /* */ import net.minecraft.util.RegistryNamespaced;
    /* */ import net.minecraft.util.ResourceLocation;
    /* */ import net.minecraft.util.StatCollector;
    /* */ import net.minecraft.util.Vec3;
    /* */ import net.minecraft.util.WeightedRandomChestContent;
    /* */ import net.minecraft.world.World;
    /* */ import net.minecraftforge.common.ChestGenHooks;
    /* */ import net.minecraftforge.fml.common.ModContainer;
    /* */ import net.minecraftforge.fml.common.registry.FMLControlledNamespacedRegistry;
    /* */ import net.minecraftforge.fml.common.registry.GameData;
    /* */ import net.minecraftforge.fml.common.registry.RegistryDelegate;
    /* */ import net.minecraftforge.fml.relauncher.Side;
    /* */ import net.minecraftforge.fml.relauncher.SideOnly;
    /* */
    /* */ public class Item
    /* */ {
    /* 51 */ public static final RegistryNamespaced<ResourceLocation, Item> itemRegistry = ;
    /* 52 */ private static final Map<Block, Item> BLOCK_TO_ITEM = GameData.getBlockItemMap();
    /* 53 */ protected static final UUID itemModifierUUID = UUID.fromString("CB3F55D3-645C-4F38-A497-9C13A33DB5CF");
    /* */
    /* */ private CreativeTabs tabToDisplayOn;
    /* 56 */ protected static Random itemRand = new Random();
    /* */
    /* */ protected int maxStackSize;
    /* */
    /* */ private int maxDamage;
    /* */
    /* */ protected boolean bFull3D;
    /* */
    /* */ protected boolean hasSubtypes;
    /* */
    /* */ private Item containerItem;
    /* */ private String potionEffect;
    /* */ private String unlocalizedName;
    /* */ public final RegistryDelegate<Item> delegate;
    /* */ protected boolean canRepair;
    /* */ private Map<String, Integer> toolClasses;
    /* */ private ResourceLocation registryName;
    /* */
    /* */ public static int getIdFromItem(Item itemIn)
    /* */ {
    /* 76 */ return itemIn == null ? 0 : itemRegistry.getIDForObject(itemIn);
    /* */ }
    /* */
    /* */ public static Item getItemById(int id)
    /* */ {
    /* 81 */ return (Item)itemRegistry.getObjectById(id);
    /* */ }
    /* */
    /* */ public static Item getItemFromBlock(Block blockIn)
    /* */ {
    /* 86 */ return (Item)BLOCK_TO_ITEM.get(blockIn);
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public static Item getByNameOrId(String id)
    /* */ {
    /* 95 */ Item item = (Item)itemRegistry.getObject(new ResourceLocation(id));
    /* */
    /* 97 */ if (item == null)
    /* */ {
    /* */ try
    /* */ {
    /* 101 */ return getItemById(Integer.parseInt(id));
    /* */ }
    /* */ catch (NumberFormatException var3) {}
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* 109 */ return item;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean updateItemStackNBT(NBTTagCompound nbt)
    /* */ {
    /* 117 */ return false;
    /* */ }
    /* */
    /* */ public Item setMaxStackSize(int maxStackSize)
    /* */ {
    /* 122 */ this.maxStackSize = maxStackSize;
    /* 123 */ return this;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ)
    /* */ {
    /* 131 */ return false;
    /* */ }
    /* */
    /* */ public float getStrVsBlock(ItemStack stack, Block state)
    /* */ {
    /* 136 */ return 1.0F;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public ItemStack onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn)
    /* */ {
    /* 144 */ return itemStackIn;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public ItemStack onItemUseFinish(ItemStack stack, World worldIn, EntityPlayer playerIn)
    /* */ {
    /* 153 */ return stack;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ @Deprecated
    /* */ public int getItemStackLimit()
    /* */ {
    /* 162 */ return this.maxStackSize;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public int getMetadata(int damage)
    /* */ {
    /* 171 */ return 0;
    /* */ }
    /* */
    /* */ public boolean getHasSubtypes()
    /* */ {
    /* 176 */ return this.hasSubtypes;
    /* */ }
    /* */
    /* */ public Item setHasSubtypes(boolean hasSubtypes)
    /* */ {
    /* 181 */ this.hasSubtypes = hasSubtypes;
    /* 182 */ return this;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public int getMaxDamage()
    /* */ {
    /* 190 */ return this.maxDamage;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public Item setMaxDamage(int maxDamageIn)
    /* */ {
    /* 198 */ this.maxDamage = maxDamageIn;
    /* 199 */ return this;
    /* */ }
    /* */
    /* */ public boolean isDamageable()
    /* */ {
    /* 204 */ return (this.maxDamage > 0) && (!this.hasSubtypes);
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean hitEntity(ItemStack stack, EntityLivingBase target, EntityLivingBase attacker)
    /* */ {
    /* 213 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean onBlockDestroyed(ItemStack stack, World worldIn, Block blockIn, BlockPos pos, EntityLivingBase playerIn)
    /* */ {
    /* 221 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean canHarvestBlock(Block blockIn)
    /* */ {
    /* 229 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean itemInteractionForEntity(ItemStack stack, EntityPlayer playerIn, EntityLivingBase target)
    /* */ {
    /* 237 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public Item setFull3D()
    /* */ {
    /* 245 */ this.bFull3D = true;
    /* 246 */ return this;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ @SideOnly(Side.CLIENT)
    /* */ public boolean isFull3D()
    /* */ {
    /* 255 */ return this.bFull3D;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ @SideOnly(Side.CLIENT)
    /* */ public boolean shouldRotateAroundWhenRendering()
    /* */ {
    /* 265 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public Item setUnlocalizedName(String unlocalizedName)
    /* */ {
    /* 273 */ this.unlocalizedName = unlocalizedName;
    /* 274 */ return this;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public String getUnlocalizedNameInefficiently(ItemStack stack)
    /* */ {
    /* 283 */ String s = getUnlocalizedName(stack);
    /* 284 */ return s == null ? "" : StatCollector.translateToLocal(s);
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public String getUnlocalizedName()
    /* */ {
    /* 292 */ return "item." + this.unlocalizedName;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public String getUnlocalizedName(ItemStack stack)
    /* */ {
    /* 301 */ return "item." + this.unlocalizedName;
    /* */ }
    /* */
    /* */ public Item setContainerItem(Item containerItem)
    /* */ {
    /* 306 */ this.containerItem = containerItem;
    /* 307 */ return this;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean getShareTag()
    /* */ {
    /* 315 */ return true;
    /* */ }
    /* */
    /* */ public Item getContainerItem()
    /* */ {
    /* 320 */ return this.containerItem;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ @Deprecated
    /* */ public boolean hasContainerItem()
    /* */ {
    /* 329 */ return this.containerItem != null;
    /* */ }
    /* */
    /* */ @SideOnly(Side.CLIENT)
    /* */ public int getColorFromItemStack(ItemStack stack, int renderPass)
    /* */ {
    /* 335 */ return 16777215;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean isMap()
    /* */ {
    /* 358 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public EnumAction getItemUseAction(ItemStack stack)
    /* */ {
    /* 366 */ return EnumAction.NONE;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public int getMaxItemUseDuration(ItemStack stack)
    /* */ {
    /* 374 */ return 0;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public Item setPotionEffect(String potionEffect)
    /* */ {
    /* 389 */ this.potionEffect = potionEffect;
    /* 390 */ return this;
    /* */ }
    /* */
    /* */ public String getPotionEffect(ItemStack stack)
    /* */ {
    /* 395 */ return this.potionEffect;
    /* */ }
    /* */
    /* */ public boolean isPotionIngredient(ItemStack stack)
    /* */ {
    /* 400 */ return getPotionEffect(stack) != null;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public String getItemStackDisplayName(ItemStack stack)
    /* */ {
    /* 413 */ return ("" + StatCollector.translateToLocal(new StringBuilder().append(getUnlocalizedNameInefficiently(stack)).append(".name").toString())).trim();
    /* */ }
    /* */
    /* */ @SideOnly(Side.CLIENT)
    /* */ public boolean hasEffect(ItemStack stack)
    /* */ {
    /* 419 */ return stack.isItemEnchanted();
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public EnumRarity getRarity(ItemStack stack)
    /* */ {
    /* 427 */ return stack.isItemEnchanted() ? EnumRarity.RARE : EnumRarity.COMMON;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean isItemTool(ItemStack stack)
    /* */ {
    /* 435 */ return (getItemStackLimit(stack) == 1) && (isDamageable());
    /* */ }
    /* */
    /* */ protected net.minecraft.util.MovingObjectPosition getMovingObjectPositionFromPlayer(World worldIn, EntityPlayer playerIn, boolean useLiquids)
    /* */ {
    /* 440 */ float f = playerIn.rotationPitch;
    /* 441 */ float f1 = playerIn.rotationYaw;
    /* 442 */ double d0 = playerIn.posX;
    /* 443 */ double d1 = playerIn.posY + playerIn.getEyeHeight();
    /* 444 */ double d2 = playerIn.posZ;
    /* 445 */ Vec3 vec3 = new Vec3(d0, d1, d2);
    /* 446 */ float f2 = MathHelper.cos(-f1 * 0.017453292F - 3.1415927F);
    /* 447 */ float f3 = MathHelper.sin(-f1 * 0.017453292F - 3.1415927F);
    /* 448 */ float f4 = -MathHelper.cos(-f * 0.017453292F);
    /* 449 */ float f5 = MathHelper.sin(-f * 0.017453292F);
    /* 450 */ float f6 = f3 * f4;
    /* 451 */ float f7 = f2 * f4;
    /* 452 */ double d3 = 5.0D;
    /* 453 */ if ((playerIn instanceof EntityPlayerMP))
    /* */ {
    /* 455 */ d3 = ((EntityPlayerMP)playerIn).theItemInWorldManager.getBlockReachDistance();
    /* */ }
    /* 457 */ Vec3 vec31 = vec3.addVector(f6 * d3, f5 * d3, f7 * d3);
    /* 458 */ return worldIn.rayTraceBlocks(vec3, vec31, useLiquids, !useLiquids, false);
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public int getItemEnchantability()
    /* */ {
    /* 466 */ return 0;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ @SideOnly(Side.CLIENT)
    /* */ public void getSubItems(Item itemIn, CreativeTabs tab, List<ItemStack> subItems)
    /* */ {
    /* 475 */ subItems.add(new ItemStack(itemIn, 1, 0));
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public Item setCreativeTab(CreativeTabs tab)
    /* */ {
    /* 483 */ this.tabToDisplayOn = tab;
    /* 484 */ return this;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ @SideOnly(Side.CLIENT)
    /* */ public CreativeTabs getCreativeTab()
    /* */ {
    /* 493 */ return this.tabToDisplayOn;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean canItemEditBlocks()
    /* */ {
    /* 502 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean getIsRepairable(ItemStack toRepair, ItemStack repair)
    /* */ {
    /* 510 */ return false;
    /* */ }
    /* */
    /* */ @Deprecated
    /* */ public Multimap<String, net.minecraft.entity.ai.attributes.AttributeModifier> getItemAttributeModifiers()
    /* */ {
    /* 516 */ return com.google.common.collect.HashMultimap.create();
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public Multimap<String, net.minecraft.entity.ai.attributes.AttributeModifier> getAttributeModifiers(ItemStack stack)
    /* */ {
    /* 525 */ return getItemAttributeModifiers();
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean onDroppedByPlayer(ItemStack item, EntityPlayer player)
    /* */ {
    /* 539 */ return true;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public String getHighlightTip(ItemStack item, String displayName)
    /* */ {
    /* 552 */ return displayName;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ)
    /* */ {
    /* 566 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public float getDigSpeed(ItemStack itemstack, IBlockState state)
    /* */ {
    /* 577 */ return getStrVsBlock(itemstack, state.getBlock());
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean isRepairable()
    /* */ {
    /* 588 */ return (this.canRepair) && (isDamageable());
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public Item setNoRepair()
    /* */ {
    /* 597 */ this.canRepair = false;
    /* 598 */ return this;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean onBlockStartBreak(ItemStack itemstack, BlockPos pos, EntityPlayer player)
    /* */ {
    /* 613 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity)
    /* */ {
    /* 638 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ @SideOnly(Side.CLIENT)
    /* */ public net.minecraft.client.resources.model.ModelResourceLocation getModel(ItemStack stack, EntityPlayer player, int useRemaining)
    /* */ {
    /* 652 */ return null;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public ItemStack getContainerItem(ItemStack itemStack)
    /* */ {
    /* 664 */ if (!hasContainerItem(itemStack))
    /* */ {
    /* 666 */ return null;
    /* */ }
    /* 668 */ return new ItemStack(getContainerItem());
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean hasContainerItem(ItemStack stack)
    /* */ {
    /* 681 */ return hasContainerItem();
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public int getEntityLifespan(ItemStack itemStack, World world)
    /* */ {
    /* 694 */ return 6000;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean hasCustomEntity(ItemStack stack)
    /* */ {
    /* 707 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public Entity createEntity(World world, Entity location, ItemStack itemstack)
    /* */ {
    /* 722 */ return null;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean onEntityItemUpdate(EntityItem entityItem)
    /* */ {
    /* 734 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public CreativeTabs[] getCreativeTabs()
    /* */ {
    /* 746 */ return new CreativeTabs[] { getCreativeTab() };
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public float getSmeltingExperience(ItemStack item)
    /* */ {
    /* 759 */ return -1.0F;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public WeightedRandomChestContent getChestGenBase(ChestGenHooks chest, Random rnd, WeightedRandomChestContent original)
    /* */ {
    /* 787 */ if ((this instanceof ItemEnchantedBook))
    /* */ {
    /* 789 */ return ((ItemEnchantedBook)this).getRandom(rnd, original.minStackSize, original.maxStackSize, original.itemWeight);
    /* */ }
    /* */
    /* */
    /* 793 */ return original;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean doesSneakBypassUse(World world, BlockPos pos, EntityPlayer player)
    /* */ {
    /* 807 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean isValidArmor(ItemStack stack, int armorType, Entity entity)
    /* */ {
    /* 825 */ if ((this instanceof ItemArmor))
    /* */ {
    /* 827 */ return ((ItemArmor)this).armorType == armorType;
    /* */ }
    /* */
    /* 830 */ if (armorType == 0)
    /* */ {
    /* 832 */ return (this == getItemFromBlock(Blocks.pumpkin)) || (this == Items.skull);
    /* */ }
    /* */
    /* 835 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean isBookEnchantable(ItemStack stack, ItemStack book)
    /* */ {
    /* 847 */ return true;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type)
    /* */ {
    /* 865 */ return null;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ @SideOnly(Side.CLIENT)
    /* */ public net.minecraft.client.gui.FontRenderer getFontRenderer(ItemStack stack)
    /* */ {
    /* 878 */ return null;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ @SideOnly(Side.CLIENT)
    /* */ @Deprecated
    /* */ public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, int armorSlot)
    /* */ {
    /* 889 */ return null;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ @SideOnly(Side.CLIENT)
    /* */ public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, int armorSlot, ModelBiped _default)
    /* */ {
    /* 904 */ return getArmorModel(entityLiving, itemStack, armorSlot);
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean onEntitySwing(EntityLivingBase entityLiving, ItemStack stack)
    /* */ {
    /* 916 */ return false;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public int getDamage(ItemStack stack)
    /* */ {
    /* 939 */ return stack.itemDamage;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public int getMetadata(ItemStack stack)
    /* */ {
    /* 949 */ return stack.itemDamage;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean showDurabilityBar(ItemStack stack)
    /* */ {
    /* 962 */ return stack.isItemDamaged();
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public double getDurabilityForDisplay(ItemStack stack)
    /* */ {
    /* 973 */ return stack.getItemDamage() / stack.getMaxDamage();
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public int getMaxDamage(ItemStack stack)
    /* */ {
    /* 988 */ return getMaxDamage();
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean isDamaged(ItemStack stack)
    /* */ {
    /* 998 */ return stack.itemDamage > 0;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public void setDamage(ItemStack stack, int damage)
    /* */ {
    /* 1008 */ stack.itemDamage = damage;
    /* */
    /* 1010 */ if (stack.itemDamage < 0)
    /* */ {
    /* 1012 */ stack.itemDamage = 0;
    /* */ }
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean canHarvestBlock(Block par1Block, ItemStack itemStack)
    /* */ {
    /* 1027 */ return canHarvestBlock(par1Block);
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public int getItemStackLimit(ItemStack stack)
    /* */ {
    /* 1039 */ return getItemStackLimit();
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public void setHarvestLevel(String toolClass, int level)
    /* */ {
    /* 1056 */ if (level < 0) {
    /* 1057 */ this.toolClasses.remove(toolClass);
    /* */ } else {
    /* 1059 */ this.toolClasses.put(toolClass, Integer.valueOf(level));
    /* */ }
    /* */ }
    /* */
    /* */ public java.util.Set<String> getToolClasses(ItemStack stack) {
    /* 1064 */ return this.toolClasses.keySet();
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public int getHarvestLevel(ItemStack stack, String toolClass)
    /* */ {
    /* 1077 */ Integer ret = (Integer)this.toolClasses.get(toolClass);
    /* 1078 */ return ret == null ? -1 : ret.intValue();
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public int getItemEnchantability(ItemStack stack)
    /* */ {
    /* 1092 */ return getItemEnchantability();
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean isBeaconPayment(ItemStack stack)
    /* */ {
    /* 1102 */ return (this == Items.emerald) || (this == Items.diamond) || (this == Items.gold_ingot) || (this == Items.iron_ingot);
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public boolean shouldCauseReequipAnimation(ItemStack oldStack, ItemStack newStack, boolean slotChanged)
    /* */ {
    /* 1117 */ return !ItemStack.areItemStacksEqual(oldStack, newStack);
    /* */ }
    /* */
    /* */ public Item()
    /* */ {
    /* 58 */ this.maxStackSize = 64;
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* 72 */ this.delegate = ((FMLControlledNamespacedRegistry)itemRegistry).getDelegate(this, Item.class);
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* 581 */ this.canRepair = true;
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* 1042 */ this.toolClasses = new java.util.HashMap();
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* 1121 */ this.registryName = null;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public final Item setRegistryName(String name)
    /* */ {
    /* 1139 */ if (getRegistryName() != null)
    /* 1140 */ throw new IllegalStateException("Attempted to set registry name on block with exisiting registry name! New: " + name + " Old: " + getRegistryName());
    /* 1141 */ int index = name.lastIndexOf(':');
    /* 1142 */ String oldPrefix = index == -1 ? "" : name.substring(0, index);
    /* 1143 */ name = index == -1 ? name : name.substring(index + 1);
    /* 1144 */ ModContainer mc = net.minecraftforge.fml.common.Loader.instance().activeModContainer();
    /* 1145 */ String prefix = mc == null ? "minecraft" : mc.getModId();
    /* 1146 */ if ((!oldPrefix.equals(prefix)) && (oldPrefix.length() > 0))
    /* */ {
    /* 1148 */ net.minecraftforge.fml.common.FMLLog.bigWarning("Dangerous alternative prefix %s for name %s, invalid registry invocation/invalid name?", new Object[] { oldPrefix, name });
    /* 1149 */ prefix = oldPrefix;
    /* */ }
    /* 1151 */ this.registryName = new ResourceLocation(prefix, name);
    /* 1152 */ return this; }
    /* */
    /* 1154 */ public final Item setRegistryName(ResourceLocation name) { return setRegistryName(name.toString()); }
    /* 1155 */ public final Item setRegistryName(String modID, String name) { return setRegistryName(modID + ":" + name); }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public final String getRegistryName()
    /* */ {
    /* 1166 */ if (this.delegate.getResourceName() != null) return this.delegate.getResourceName().toString();
    /* 1167 */ return this.registryName != null ? this.registryName.toString() : null;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */
    /* */ public net.minecraftforge.common.capabilities.ICapabilityProvider initCapabilities(ItemStack stack, NBTTagCompound nbt)
    /* */ {
    /* 1185 */ return null;
    /* */ }
    /* */
    /* */
    /* */ public static void registerItems()
    /* */ {
    /* 1191 */ registerItemBlock(Blocks.stone, new ItemMultiTexture(Blocks.stone, Blocks.stone, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1195 */ return net.minecraft.block.BlockStone.EnumType.byMetadata(p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1197 */ .setUnlocalizedName("stone"));
    /* 1198 */ registerItemBlock(Blocks.grass, new ItemColored(Blocks.grass, false));
    /* 1199 */ registerItemBlock(Blocks.dirt, new ItemMultiTexture(Blocks.dirt, Blocks.dirt, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1203 */ return BlockDirt.DirtType.byMetadata(p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1205 */ .setUnlocalizedName("dirt"));
    /* 1206 */ registerItemBlock(Blocks.cobblestone);
    /* 1207 */ registerItemBlock(Blocks.planks, new ItemMultiTexture(Blocks.planks, Blocks.planks, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1211 */ return BlockPlanks.EnumType.byMetadata(p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1213 */ .setUnlocalizedName("wood"));
    /* 1214 */ registerItemBlock(Blocks.sapling, new ItemMultiTexture(Blocks.sapling, Blocks.sapling, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1218 */ return BlockPlanks.EnumType.byMetadata(p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1220 */ .setUnlocalizedName("sapling"));
    /* 1221 */ registerItemBlock(Blocks.bedrock);
    /* 1222 */ registerItemBlock(Blocks.sand, new ItemMultiTexture(Blocks.sand, Blocks.sand, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1226 */ return BlockSand.EnumType.byMetadata(p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1228 */ .setUnlocalizedName("sand"));
    /* 1229 */ registerItemBlock(Blocks.gravel);
    /* 1230 */ registerItemBlock(Blocks.gold_ore);
    /* 1231 */ registerItemBlock(Blocks.iron_ore);
    /* 1232 */ registerItemBlock(Blocks.coal_ore);
    /* 1233 */ registerItemBlock(Blocks.log, new ItemMultiTexture(Blocks.log, Blocks.log, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1237 */ return BlockPlanks.EnumType.byMetadata(p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1239 */ .setUnlocalizedName("log"));
    /* 1240 */ registerItemBlock(Blocks.log2, new ItemMultiTexture(Blocks.log2, Blocks.log2, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1244 */ return BlockPlanks.EnumType.byMetadata(p_apply_1_.getMetadata() + 4).getUnlocalizedName(); } })
    /* */
    /* 1246 */ .setUnlocalizedName("log"));
    /* 1247 */ registerItemBlock(Blocks.leaves, new ItemLeaves(Blocks.leaves).setUnlocalizedName("leaves"));
    /* 1248 */ registerItemBlock(Blocks.leaves2, new ItemLeaves(Blocks.leaves2).setUnlocalizedName("leaves"));
    /* 1249 */ registerItemBlock(Blocks.sponge, new ItemMultiTexture(Blocks.sponge, Blocks.sponge, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1253 */ return (p_apply_1_.getMetadata() & 0x1) == 1 ? "wet" : "dry"; } })
    /* */
    /* 1255 */ .setUnlocalizedName("sponge"));
    /* 1256 */ registerItemBlock(Blocks.glass);
    /* 1257 */ registerItemBlock(Blocks.lapis_ore);
    /* 1258 */ registerItemBlock(Blocks.lapis_block);
    /* 1259 */ registerItemBlock(Blocks.dispenser);
    /* 1260 */ registerItemBlock(Blocks.sandstone, new ItemMultiTexture(Blocks.sandstone, Blocks.sandstone, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1264 */ return BlockSandStone.EnumType.byMetadata(p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1266 */ .setUnlocalizedName("sandStone"));
    /* 1267 */ registerItemBlock(Blocks.noteblock);
    /* 1268 */ registerItemBlock(Blocks.golden_rail);
    /* 1269 */ registerItemBlock(Blocks.detector_rail);
    /* 1270 */ registerItemBlock(Blocks.sticky_piston, new ItemPiston(Blocks.sticky_piston));
    /* 1271 */ registerItemBlock(Blocks.web);
    /* 1272 */ registerItemBlock(Blocks.tallgrass, new ItemColored(Blocks.tallgrass, true).setSubtypeNames(new String[] { "shrub", "grass", "fern" }));
    /* 1273 */ registerItemBlock(Blocks.deadbush);
    /* 1274 */ registerItemBlock(Blocks.piston, new ItemPiston(Blocks.piston));
    /* 1275 */ registerItemBlock(Blocks.wool, new ItemCloth(Blocks.wool).setUnlocalizedName("cloth"));
    /* 1276 */ registerItemBlock(Blocks.yellow_flower, new ItemMultiTexture(Blocks.yellow_flower, Blocks.yellow_flower, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1280 */ return BlockFlower.EnumFlowerType.getType(net.minecraft.block.BlockFlower.EnumFlowerColor.YELLOW, p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1282 */ .setUnlocalizedName("flower"));
    /* 1283 */ registerItemBlock(Blocks.red_flower, new ItemMultiTexture(Blocks.red_flower, Blocks.red_flower, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1287 */ return BlockFlower.EnumFlowerType.getType(net.minecraft.block.BlockFlower.EnumFlowerColor.RED, p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1289 */ .setUnlocalizedName("rose"));
    /* 1290 */ registerItemBlock(Blocks.brown_mushroom);
    /* 1291 */ registerItemBlock(Blocks.red_mushroom);
    /* 1292 */ registerItemBlock(Blocks.gold_block);
    /* 1293 */ registerItemBlock(Blocks.iron_block);
    /* 1294 */ registerItemBlock(Blocks.stone_slab, new ItemSlab(Blocks.stone_slab, Blocks.stone_slab, Blocks.double_stone_slab).setUnlocalizedName("stoneSlab"));
    /* 1295 */ registerItemBlock(Blocks.brick_block);
    /* 1296 */ registerItemBlock(Blocks.tnt);
    /* 1297 */ registerItemBlock(Blocks.bookshelf);
    /* 1298 */ registerItemBlock(Blocks.mossy_cobblestone);
    /* 1299 */ registerItemBlock(Blocks.obsidian);
    /* 1300 */ registerItemBlock(Blocks.torch);
    /* 1301 */ registerItemBlock(Blocks.mob_spawner);
    /* 1302 */ registerItemBlock(Blocks.oak_stairs);
    /* 1303 */ registerItemBlock(Blocks.chest);
    /* 1304 */ registerItemBlock(Blocks.diamond_ore);
    /* 1305 */ registerItemBlock(Blocks.diamond_block);
    /* 1306 */ registerItemBlock(Blocks.crafting_table);
    /* 1307 */ registerItemBlock(Blocks.farmland);
    /* 1308 */ registerItemBlock(Blocks.furnace);
    /* 1309 */ registerItemBlock(Blocks.lit_furnace);
    /* 1310 */ registerItemBlock(Blocks.ladder);
    /* 1311 */ registerItemBlock(Blocks.rail);
    /* 1312 */ registerItemBlock(Blocks.stone_stairs);
    /* 1313 */ registerItemBlock(Blocks.lever);
    /* 1314 */ registerItemBlock(Blocks.stone_pressure_plate);
    /* 1315 */ registerItemBlock(Blocks.wooden_pressure_plate);
    /* 1316 */ registerItemBlock(Blocks.redstone_ore);
    /* 1317 */ registerItemBlock(Blocks.redstone_torch);
    /* 1318 */ registerItemBlock(Blocks.stone_button);
    /* 1319 */ registerItemBlock(Blocks.snow_layer, new ItemSnow(Blocks.snow_layer));
    /* 1320 */ registerItemBlock(Blocks.ice);
    /* 1321 */ registerItemBlock(Blocks.snow);
    /* 1322 */ registerItemBlock(Blocks.cactus);
    /* 1323 */ registerItemBlock(Blocks.clay);
    /* 1324 */ registerItemBlock(Blocks.jukebox);
    /* 1325 */ registerItemBlock(Blocks.oak_fence);
    /* 1326 */ registerItemBlock(Blocks.spruce_fence);
    /* 1327 */ registerItemBlock(Blocks.birch_fence);
    /* 1328 */ registerItemBlock(Blocks.jungle_fence);
    /* 1329 */ registerItemBlock(Blocks.dark_oak_fence);
    /* 1330 */ registerItemBlock(Blocks.acacia_fence);
    /* 1331 */ registerItemBlock(Blocks.pumpkin);
    /* 1332 */ registerItemBlock(Blocks.netherrack);
    /* 1333 */ registerItemBlock(Blocks.soul_sand);
    /* 1334 */ registerItemBlock(Blocks.glowstone);
    /* 1335 */ registerItemBlock(Blocks.lit_pumpkin);
    /* 1336 */ registerItemBlock(Blocks.trapdoor);
    /* 1337 */ registerItemBlock(Blocks.monster_egg, new ItemMultiTexture(Blocks.monster_egg, Blocks.monster_egg, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1341 */ return net.minecraft.block.BlockSilverfish.EnumType.byMetadata(p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1343 */ .setUnlocalizedName("monsterStoneEgg"));
    /* 1344 */ registerItemBlock(Blocks.stonebrick, new ItemMultiTexture(Blocks.stonebrick, Blocks.stonebrick, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1348 */ return BlockStoneBrick.EnumType.byMetadata(p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1350 */ .setUnlocalizedName("stonebricksmooth"));
    /* 1351 */ registerItemBlock(Blocks.brown_mushroom_block);
    /* 1352 */ registerItemBlock(Blocks.red_mushroom_block);
    /* 1353 */ registerItemBlock(Blocks.iron_bars);
    /* 1354 */ registerItemBlock(Blocks.glass_pane);
    /* 1355 */ registerItemBlock(Blocks.melon_block);
    /* 1356 */ registerItemBlock(Blocks.vine, new ItemColored(Blocks.vine, false));
    /* 1357 */ registerItemBlock(Blocks.oak_fence_gate);
    /* 1358 */ registerItemBlock(Blocks.spruce_fence_gate);
    /* 1359 */ registerItemBlock(Blocks.birch_fence_gate);
    /* 1360 */ registerItemBlock(Blocks.jungle_fence_gate);
    /* 1361 */ registerItemBlock(Blocks.dark_oak_fence_gate);
    /* 1362 */ registerItemBlock(Blocks.acacia_fence_gate);
    /* 1363 */ registerItemBlock(Blocks.brick_stairs);
    /* 1364 */ registerItemBlock(Blocks.stone_brick_stairs);
    /* 1365 */ registerItemBlock(Blocks.mycelium);
    /* 1366 */ registerItemBlock(Blocks.waterlily, new ItemLilyPad(Blocks.waterlily));
    /* 1367 */ registerItemBlock(Blocks.nether_brick);
    /* 1368 */ registerItemBlock(Blocks.nether_brick_fence);
    /* 1369 */ registerItemBlock(Blocks.nether_brick_stairs);
    /* 1370 */ registerItemBlock(Blocks.enchanting_table);
    /* 1371 */ registerItemBlock(Blocks.end_portal_frame);
    /* 1372 */ registerItemBlock(Blocks.end_stone);
    /* 1373 */ registerItemBlock(Blocks.dragon_egg);
    /* 1374 */ registerItemBlock(Blocks.redstone_lamp);
    /* 1375 */ registerItemBlock(Blocks.wooden_slab, new ItemSlab(Blocks.wooden_slab, Blocks.wooden_slab, Blocks.double_wooden_slab).setUnlocalizedName("woodSlab"));
    /* 1376 */ registerItemBlock(Blocks.sandstone_stairs);
    /* 1377 */ registerItemBlock(Blocks.emerald_ore);
    /* 1378 */ registerItemBlock(Blocks.ender_chest);
    /* 1379 */ registerItemBlock(Blocks.tripwire_hook);
    /* 1380 */ registerItemBlock(Blocks.emerald_block);
    /* 1381 */ registerItemBlock(Blocks.spruce_stairs);
    /* 1382 */ registerItemBlock(Blocks.birch_stairs);
    /* 1383 */ registerItemBlock(Blocks.jungle_stairs);
    /* 1384 */ registerItemBlock(Blocks.command_block);
    /* 1385 */ registerItemBlock(Blocks.beacon);
    /* 1386 */ registerItemBlock(Blocks.cobblestone_wall, new ItemMultiTexture(Blocks.cobblestone_wall, Blocks.cobblestone_wall, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1390 */ return BlockWall.EnumType.byMetadata(p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1392 */ .setUnlocalizedName("cobbleWall"));
    /* 1393 */ registerItemBlock(Blocks.wooden_button);
    /* 1394 */ registerItemBlock(Blocks.anvil, new ItemAnvilBlock(Blocks.anvil).setUnlocalizedName("anvil"));
    /* 1395 */ registerItemBlock(Blocks.trapped_chest);
    /* 1396 */ registerItemBlock(Blocks.light_weighted_pressure_plate);
    /* 1397 */ registerItemBlock(Blocks.heavy_weighted_pressure_plate);
    /* 1398 */ registerItemBlock(Blocks.daylight_detector);
    /* 1399 */ registerItemBlock(Blocks.redstone_block);
    /* 1400 */ registerItemBlock(Blocks.quartz_ore);
    /* 1401 */ registerItemBlock(Blocks.hopper);
    /* 1402 */ registerItemBlock(Blocks.quartz_block, new ItemMultiTexture(Blocks.quartz_block, Blocks.quartz_block, new String[] { "default", "chiseled", "lines" }).setUnlocalizedName("quartzBlock"));
    /* 1403 */ registerItemBlock(Blocks.quartz_stairs);
    /* 1404 */ registerItemBlock(Blocks.activator_rail);
    /* 1405 */ registerItemBlock(Blocks.dropper);
    /* 1406 */ registerItemBlock(Blocks.stained_hardened_clay, new ItemCloth(Blocks.stained_hardened_clay).setUnlocalizedName("clayHardenedStained"));
    /* 1407 */ registerItemBlock(Blocks.barrier);
    /* 1408 */ registerItemBlock(Blocks.iron_trapdoor);
    /* 1409 */ registerItemBlock(Blocks.hay_block);
    /* 1410 */ registerItemBlock(Blocks.carpet, new ItemCloth(Blocks.carpet).setUnlocalizedName("woolCarpet"));
    /* 1411 */ registerItemBlock(Blocks.hardened_clay);
    /* 1412 */ registerItemBlock(Blocks.coal_block);
    /* 1413 */ registerItemBlock(Blocks.packed_ice);
    /* 1414 */ registerItemBlock(Blocks.acacia_stairs);
    /* 1415 */ registerItemBlock(Blocks.dark_oak_stairs);
    /* 1416 */ registerItemBlock(Blocks.slime_block);
    /* 1417 */ registerItemBlock(Blocks.double_plant, new ItemDoublePlant(Blocks.double_plant, Blocks.double_plant, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1421 */ return BlockDoublePlant.EnumPlantType.byMetadata(p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1423 */ .setUnlocalizedName("doublePlant"));
    /* 1424 */ registerItemBlock(Blocks.stained_glass, new ItemCloth(Blocks.stained_glass).setUnlocalizedName("stainedGlass"));
    /* 1425 */ registerItemBlock(Blocks.stained_glass_pane, new ItemCloth(Blocks.stained_glass_pane).setUnlocalizedName("stainedGlassPane"));
    /* 1426 */ registerItemBlock(Blocks.prismarine, new ItemMultiTexture(Blocks.prismarine, Blocks.prismarine, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1430 */ return net.minecraft.block.BlockPrismarine.EnumType.byMetadata(p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1432 */ .setUnlocalizedName("prismarine"));
    /* 1433 */ registerItemBlock(Blocks.sea_lantern);
    /* 1434 */ registerItemBlock(Blocks.red_sandstone, new ItemMultiTexture(Blocks.red_sandstone, Blocks.red_sandstone, new Function()
    /* */ {
    /* */
    /* */ public String apply(ItemStack p_apply_1_) {
    /* 1438 */ return net.minecraft.block.BlockRedSandstone.EnumType.byMetadata(p_apply_1_.getMetadata()).getUnlocalizedName(); } })
    /* */
    /* 1440 */ .setUnlocalizedName("redSandStone"));
    /* 1441 */ registerItemBlock(Blocks.red_sandstone_stairs);
    /* 1442 */ registerItemBlock(Blocks.stone_slab2, new ItemSlab(Blocks.stone_slab2, Blocks.stone_slab2, Blocks.double_stone_slab2).setUnlocalizedName("stoneSlab2"));
    /* 1443 */ registerItem(256, "iron_shovel", new ItemSpade(ToolMaterial.IRON).setUnlocalizedName("shovelIron"));
    /* 1444 */ registerItem(257, "iron_pickaxe", new ItemPickaxe(ToolMaterial.IRON).setUnlocalizedName("pickaxeIron"));
    /* 1445 */ registerItem(258, "iron_axe", new ItemAxe(ToolMaterial.IRON).setUnlocalizedName("hatchetIron"));
    /* 1446 */ registerItem(259, "flint_and_steel", new ItemFlintAndSteel().setUnlocalizedName("flintAndSteel"));
    /* 1447 */ registerItem(260, "apple", new ItemFood(4, 0.3F, false).setUnlocalizedName("apple"));
    /* 1448 */ registerItem(261, "bow", new ItemBow().setUnlocalizedName("bow"));
    /* 1449 */ registerItem(262, "arrow", new Item().setUnlocalizedName("arrow").setCreativeTab(CreativeTabs.tabCombat));
    /* 1450 */ registerItem(263, "coal", new ItemCoal().setUnlocalizedName("coal"));
    /* 1451 */ registerItem(264, "diamond", new Item().setUnlocalizedName("diamond").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1452 */ registerItem(265, "iron_ingot", new Item().setUnlocalizedName("ingotIron").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1453 */ registerItem(266, "gold_ingot", new Item().setUnlocalizedName("ingotGold").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1454 */ registerItem(267, "iron_sword", new ItemSword(ToolMaterial.IRON).setUnlocalizedName("swordIron"));
    /* 1455 */ registerItem(268, "wooden_sword", new ItemSword(ToolMaterial.WOOD).setUnlocalizedName("swordWood"));
    /* 1456 */ registerItem(269, "wooden_shovel", new ItemSpade(ToolMaterial.WOOD).setUnlocalizedName("shovelWood"));
    /* 1457 */ registerItem(270, "wooden_pickaxe", new ItemPickaxe(ToolMaterial.WOOD).setUnlocalizedName("pickaxeWood"));
    /* 1458 */ registerItem(271, "wooden_axe", new ItemAxe(ToolMaterial.WOOD).setUnlocalizedName("hatchetWood"));
    /* 1459 */ registerItem(272, "stone_sword", new ItemSword(ToolMaterial.STONE).setUnlocalizedName("swordStone"));
    /* 1460 */ registerItem(273, "stone_shovel", new ItemSpade(ToolMaterial.STONE).setUnlocalizedName("shovelStone"));
    /* 1461 */ registerItem(274, "stone_pickaxe", new ItemPickaxe(ToolMaterial.STONE).setUnlocalizedName("pickaxeStone"));
    /* 1462 */ registerItem(275, "stone_axe", new ItemAxe(ToolMaterial.STONE).setUnlocalizedName("hatchetStone"));
    /* 1463 */ registerItem(276, "diamond_sword", new ItemSword(ToolMaterial.EMERALD).setUnlocalizedName("swordDiamond"));
    /* 1464 */ registerItem(277, "diamond_shovel", new ItemSpade(ToolMaterial.EMERALD).setUnlocalizedName("shovelDiamond"));
    /* 1465 */ registerItem(278, "diamond_pickaxe", new ItemPickaxe(ToolMaterial.EMERALD).setUnlocalizedName("pickaxeDiamond"));
    /* 1466 */ registerItem(279, "diamond_axe", new ItemAxe(ToolMaterial.EMERALD).setUnlocalizedName("hatchetDiamond"));
    /* 1467 */ registerItem(280, "stick", new Item().setFull3D().setUnlocalizedName("stick").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1468 */ registerItem(281, "bowl", new Item().setUnlocalizedName("bowl").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1469 */ registerItem(282, "mushroom_stew", new ItemSoup(6).setUnlocalizedName("mushroomStew"));
    /* 1470 */ registerItem(283, "golden_sword", new ItemSword(ToolMaterial.GOLD).setUnlocalizedName("swordGold"));
    /* 1471 */ registerItem(284, "golden_shovel", new ItemSpade(ToolMaterial.GOLD).setUnlocalizedName("shovelGold"));
    /* 1472 */ registerItem(285, "golden_pickaxe", new ItemPickaxe(ToolMaterial.GOLD).setUnlocalizedName("pickaxeGold"));
    /* 1473 */ registerItem(286, "golden_axe", new ItemAxe(ToolMaterial.GOLD).setUnlocalizedName("hatchetGold"));
    /* 1474 */ registerItem(287, "string", new ItemReed(Blocks.tripwire).setUnlocalizedName("string").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1475 */ registerItem(288, "feather", new Item().setUnlocalizedName("feather").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1476 */ registerItem(289, "gunpowder", new Item().setUnlocalizedName("sulphur").setPotionEffect("+14&13-13").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1477 */ registerItem(290, "wooden_hoe", new ItemHoe(ToolMaterial.WOOD).setUnlocalizedName("hoeWood"));
    /* 1478 */ registerItem(291, "stone_hoe", new ItemHoe(ToolMaterial.STONE).setUnlocalizedName("hoeStone"));
    /* 1479 */ registerItem(292, "iron_hoe", new ItemHoe(ToolMaterial.IRON).setUnlocalizedName("hoeIron"));
    /* 1480 */ registerItem(293, "diamond_hoe", new ItemHoe(ToolMaterial.EMERALD).setUnlocalizedName("hoeDiamond"));
    /* 1481 */ registerItem(294, "golden_hoe", new ItemHoe(ToolMaterial.GOLD).setUnlocalizedName("hoeGold"));
    /* 1482 */ registerItem(295, "wheat_seeds", new ItemSeeds(Blocks.wheat, Blocks.farmland).setUnlocalizedName("seeds"));
    /* 1483 */ registerItem(296, "wheat", new Item().setUnlocalizedName("wheat").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1484 */ registerItem(297, "bread", new ItemFood(5, 0.6F, false).setUnlocalizedName("bread"));
    /* 1485 */ registerItem(298, "leather_helmet", new ItemArmor(ItemArmor.ArmorMaterial.LEATHER, 0, 0).setUnlocalizedName("helmetCloth"));
    /* 1486 */ registerItem(299, "leather_chestplate", new ItemArmor(ItemArmor.ArmorMaterial.LEATHER, 0, 1).setUnlocalizedName("chestplateCloth"));
    /* 1487 */ registerItem(300, "leather_leggings", new ItemArmor(ItemArmor.ArmorMaterial.LEATHER, 0, 2).setUnlocalizedName("leggingsCloth"));
    /* 1488 */ registerItem(301, "leather_boots", new ItemArmor(ItemArmor.ArmorMaterial.LEATHER, 0, 3).setUnlocalizedName("bootsCloth"));
    /* 1489 */ registerItem(302, "chainmail_helmet", new ItemArmor(ItemArmor.ArmorMaterial.CHAIN, 1, 0).setUnlocalizedName("helmetChain"));
    /* 1490 */ registerItem(303, "chainmail_chestplate", new ItemArmor(ItemArmor.ArmorMaterial.CHAIN, 1, 1).setUnlocalizedName("chestplateChain"));
    /* 1491 */ registerItem(304, "chainmail_leggings", new ItemArmor(ItemArmor.ArmorMaterial.CHAIN, 1, 2).setUnlocalizedName("leggingsChain"));
    /* 1492 */ registerItem(305, "chainmail_boots", new ItemArmor(ItemArmor.ArmorMaterial.CHAIN, 1, 3).setUnlocalizedName("bootsChain"));
    /* 1493 */ registerItem(306, "iron_helmet", new ItemArmor(ItemArmor.ArmorMaterial.IRON, 2, 0).setUnlocalizedName("helmetIron"));
    /* 1494 */ registerItem(307, "iron_chestplate", new ItemArmor(ItemArmor.ArmorMaterial.IRON, 2, 1).setUnlocalizedName("chestplateIron"));
    /* 1495 */ registerItem(308, "iron_leggings", new ItemArmor(ItemArmor.ArmorMaterial.IRON, 2, 2).setUnlocalizedName("leggingsIron"));
    /* 1496 */ registerItem(309, "iron_boots", new ItemArmor(ItemArmor.ArmorMaterial.IRON, 2, 3).setUnlocalizedName("bootsIron"));
    /* 1497 */ registerItem(310, "diamond_helmet", new ItemArmor(ItemArmor.ArmorMaterial.DIAMOND, 3, 0).setUnlocalizedName("helmetDiamond"));
    /* 1498 */ registerItem(311, "diamond_chestplate", new ItemArmor(ItemArmor.ArmorMaterial.DIAMOND, 3, 1).setUnlocalizedName("chestplateDiamond"));
    /* 1499 */ registerItem(312, "diamond_leggings", new ItemArmor(ItemArmor.ArmorMaterial.DIAMOND, 3, 2).setUnlocalizedName("leggingsDiamond"));
    /* 1500 */ registerItem(313, "diamond_boots", new ItemArmor(ItemArmor.ArmorMaterial.DIAMOND, 3, 3).setUnlocalizedName("bootsDiamond"));
    /* 1501 */ registerItem(314, "golden_helmet", new ItemArmor(ItemArmor.ArmorMaterial.GOLD, 4, 0).setUnlocalizedName("helmetGold"));
    /* 1502 */ registerItem(315, "golden_chestplate", new ItemArmor(ItemArmor.ArmorMaterial.GOLD, 4, 1).setUnlocalizedName("chestplateGold"));
    /* 1503 */ registerItem(316, "golden_leggings", new ItemArmor(ItemArmor.ArmorMaterial.GOLD, 4, 2).setUnlocalizedName("leggingsGold"));
    /* 1504 */ registerItem(317, "golden_boots", new ItemArmor(ItemArmor.ArmorMaterial.GOLD, 4, 3).setUnlocalizedName("bootsGold"));
    /* 1505 */ registerItem(318, "flint", new Item().setUnlocalizedName("flint").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1506 */ registerItem(319, "porkchop", new ItemFood(3, 0.3F, true).setUnlocalizedName("porkchopRaw"));
    /* 1507 */ registerItem(320, "cooked_porkchop", new ItemFood(8, 0.8F, true).setUnlocalizedName("porkchopCooked"));
    /* 1508 */ registerItem(321, "painting", new ItemHangingEntity(net.minecraft.entity.item.EntityPainting.class).setUnlocalizedName("painting"));
    /* 1509 */ registerItem(322, "golden_apple", new ItemAppleGold(4, 1.2F, false).setAlwaysEdible().setPotionEffect(Potion.regeneration.id, 5, 1, 1.0F).setUnlocalizedName("appleGold"));
    /* 1510 */ registerItem(323, "sign", new ItemSign().setUnlocalizedName("sign"));
    /* 1511 */ registerItem(324, "wooden_door", new ItemDoor(Blocks.oak_door).setUnlocalizedName("doorOak"));
    /* 1512 */ Item item = new ItemBucket(Blocks.air).setUnlocalizedName("bucket").setMaxStackSize(16);
    /* 1513 */ registerItem(325, "bucket", item);
    /* 1514 */ registerItem(326, "water_bucket", new ItemBucket(Blocks.flowing_water).setUnlocalizedName("bucketWater").setContainerItem(item));
    /* 1515 */ registerItem(327, "lava_bucket", new ItemBucket(Blocks.flowing_lava).setUnlocalizedName("bucketLava").setContainerItem(item));
    /* 1516 */ registerItem(328, "minecart", new ItemMinecart(EntityMinecart.EnumMinecartType.RIDEABLE).setUnlocalizedName("minecart"));
    /* 1517 */ registerItem(329, "saddle", new ItemSaddle().setUnlocalizedName("saddle"));
    /* 1518 */ registerItem(330, "iron_door", new ItemDoor(Blocks.iron_door).setUnlocalizedName("doorIron"));
    /* 1519 */ registerItem(331, "redstone", new ItemRedstone().setUnlocalizedName("redstone").setPotionEffect("-5+6-7"));
    /* 1520 */ registerItem(332, "snowball", new ItemSnowball().setUnlocalizedName("snowball"));
    /* 1521 */ registerItem(333, "boat", new ItemBoat().setUnlocalizedName("boat"));
    /* 1522 */ registerItem(334, "leather", new Item().setUnlocalizedName("leather").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1523 */ registerItem(335, "milk_bucket", new ItemBucketMilk().setUnlocalizedName("milk").setContainerItem(item));
    /* 1524 */ registerItem(336, "brick", new Item().setUnlocalizedName("brick").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1525 */ registerItem(337, "clay_ball", new Item().setUnlocalizedName("clay").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1526 */ registerItem(338, "reeds", new ItemReed(Blocks.reeds).setUnlocalizedName("reeds").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1527 */ registerItem(339, "paper", new Item().setUnlocalizedName("paper").setCreativeTab(CreativeTabs.tabMisc));
    /* 1528 */ registerItem(340, "book", new ItemBook().setUnlocalizedName("book").setCreativeTab(CreativeTabs.tabMisc));
    /* 1529 */ registerItem(341, "slime_ball", new Item().setUnlocalizedName("slimeball").setCreativeTab(CreativeTabs.tabMisc));
    /* 1530 */ registerItem(342, "chest_minecart", new ItemMinecart(EntityMinecart.EnumMinecartType.CHEST).setUnlocalizedName("minecartChest"));
    /* 1531 */ registerItem(343, "furnace_minecart", new ItemMinecart(EntityMinecart.EnumMinecartType.FURNACE).setUnlocalizedName("minecartFurnace"));
    /* 1532 */ registerItem(344, "egg", new ItemEgg().setUnlocalizedName("egg"));
    /* 1533 */ registerItem(345, "compass", new Item().setUnlocalizedName("compass").setCreativeTab(CreativeTabs.tabTools));
    /* 1534 */ registerItem(346, "fishing_rod", new ItemFishingRod().setUnlocalizedName("fishingRod"));
    /* 1535 */ registerItem(347, "clock", new Item().setUnlocalizedName("clock").setCreativeTab(CreativeTabs.tabTools));
    /* 1536 */ registerItem(348, "glowstone_dust", new Item().setUnlocalizedName("yellowDust").setPotionEffect("+5-6-7").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1537 */ registerItem(349, "fish", new ItemFishFood(false).setUnlocalizedName("fish").setHasSubtypes(true));
    /* 1538 */ registerItem(350, "cooked_fish", new ItemFishFood(true).setUnlocalizedName("fish").setHasSubtypes(true));
    /* 1539 */ registerItem(351, "dye", new ItemDye().setUnlocalizedName("dyePowder"));
    /* 1540 */ registerItem(352, "bone", new Item().setUnlocalizedName("bone").setFull3D().setCreativeTab(CreativeTabs.tabMisc));
    /* 1541 */ registerItem(353, "sugar", new Item().setUnlocalizedName("sugar").setPotionEffect("-0+1-2-3&4-4+13").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1542 */ registerItem(354, "cake", new ItemReed(Blocks.cake).setMaxStackSize(1).setUnlocalizedName("cake").setCreativeTab(CreativeTabs.tabFood));
    /* 1543 */ registerItem(355, "bed", new ItemBed().setMaxStackSize(1).setUnlocalizedName("bed"));
    /* 1544 */ registerItem(356, "repeater", new ItemReed(Blocks.unpowered_repeater).setUnlocalizedName("diode").setCreativeTab(CreativeTabs.tabRedstone));
    /* 1545 */ registerItem(357, "cookie", new ItemFood(2, 0.1F, false).setUnlocalizedName("cookie"));
    /* 1546 */ registerItem(358, "filled_map", new ItemMap().setUnlocalizedName("map"));
    /* 1547 */ registerItem(359, "shears", new ItemShears().setUnlocalizedName("shears"));
    /* 1548 */ registerItem(360, "melon", new ItemFood(2, 0.3F, false).setUnlocalizedName("melon"));
    /* 1549 */ registerItem(361, "pumpkin_seeds", new ItemSeeds(Blocks.pumpkin_stem, Blocks.farmland).setUnlocalizedName("seeds_pumpkin"));
    /* 1550 */ registerItem(362, "melon_seeds", new ItemSeeds(Blocks.melon_stem, Blocks.farmland).setUnlocalizedName("seeds_melon"));
    /* 1551 */ registerItem(363, "beef", new ItemFood(3, 0.3F, true).setUnlocalizedName("beefRaw"));
    /* 1552 */ registerItem(364, "cooked_beef", new ItemFood(8, 0.8F, true).setUnlocalizedName("beefCooked"));
    /* 1553 */ registerItem(365, "chicken", new ItemFood(2, 0.3F, true).setPotionEffect(Potion.hunger.id, 30, 0, 0.3F).setUnlocalizedName("chickenRaw"));
    /* 1554 */ registerItem(366, "cooked_chicken", new ItemFood(6, 0.6F, true).setUnlocalizedName("chickenCooked"));
    /* 1555 */ registerItem(367, "rotten_flesh", new ItemFood(4, 0.1F, true).setPotionEffect(Potion.hunger.id, 30, 0, 0.8F).setUnlocalizedName("rottenFlesh"));
    /* 1556 */ registerItem(368, "ender_pearl", new ItemEnderPearl().setUnlocalizedName("enderPearl"));
    /* 1557 */ registerItem(369, "blaze_rod", new Item().setUnlocalizedName("blazeRod").setCreativeTab(CreativeTabs.tabMaterials).setFull3D());
    /* 1558 */ registerItem(370, "ghast_tear", new Item().setUnlocalizedName("ghastTear").setPotionEffect("+0-1-2-3&4-4+13").setCreativeTab(CreativeTabs.tabBrewing));
    /* 1559 */ registerItem(371, "gold_nugget", new Item().setUnlocalizedName("goldNugget").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1560 */ registerItem(372, "nether_wart", new ItemSeeds(Blocks.nether_wart, Blocks.soul_sand).setUnlocalizedName("netherStalkSeeds").setPotionEffect("+4"));
    /* 1561 */ registerItem(373, "potion", new ItemPotion().setUnlocalizedName("potion"));
    /* 1562 */ registerItem(374, "glass_bottle", new ItemGlassBottle().setUnlocalizedName("glassBottle"));
    /* 1563 */ registerItem(375, "spider_eye", new ItemFood(2, 0.8F, false).setPotionEffect(Potion.poison.id, 5, 0, 1.0F).setUnlocalizedName("spiderEye").setPotionEffect("-0-1+2-3&4-4+13"));
    /* 1564 */ registerItem(376, "fermented_spider_eye", new Item().setUnlocalizedName("fermentedSpiderEye").setPotionEffect("-0+3-4+13").setCreativeTab(CreativeTabs.tabBrewing));
    /* 1565 */ registerItem(377, "blaze_powder", new Item().setUnlocalizedName("blazePowder").setPotionEffect("+0-1-2+3&4-4+13").setCreativeTab(CreativeTabs.tabBrewing));
    /* 1566 */ registerItem(378, "magma_cream", new Item().setUnlocalizedName("magmaCream").setPotionEffect("+0+1-2-3&4-4+13").setCreativeTab(CreativeTabs.tabBrewing));
    /* 1567 */ registerItem(379, "brewing_stand", new ItemReed(Blocks.brewing_stand).setUnlocalizedName("brewingStand").setCreativeTab(CreativeTabs.tabBrewing));
    /* 1568 */ registerItem(380, "cauldron", new ItemReed(Blocks.cauldron).setUnlocalizedName("cauldron").setCreativeTab(CreativeTabs.tabBrewing));
    /* 1569 */ registerItem(381, "ender_eye", new ItemEnderEye().setUnlocalizedName("eyeOfEnder"));
    /* 1570 */ registerItem(382, "speckled_melon", new Item().setUnlocalizedName("speckledMelon").setPotionEffect("+0-1+2-3&4-4+13").setCreativeTab(CreativeTabs.tabBrewing));
    /* 1571 */ registerItem(383, "spawn_egg", new ItemMonsterPlacer().setUnlocalizedName("monsterPlacer"));
    /* 1572 */ registerItem(384, "experience_bottle", new ItemExpBottle().setUnlocalizedName("expBottle"));
    /* 1573 */ registerItem(385, "fire_charge", new ItemFireball().setUnlocalizedName("fireball"));
    /* 1574 */ registerItem(386, "writable_book", new ItemWritableBook().setUnlocalizedName("writingBook").setCreativeTab(CreativeTabs.tabMisc));
    /* 1575 */ registerItem(387, "written_book", new ItemEditableBook().setUnlocalizedName("writtenBook").setMaxStackSize(16));
    /* 1576 */ registerItem(388, "emerald", new Item().setUnlocalizedName("emerald").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1577 */ registerItem(389, "item_frame", new ItemHangingEntity(net.minecraft.entity.item.EntityItemFrame.class).setUnlocalizedName("frame"));
    /* 1578 */ registerItem(390, "flower_pot", new ItemReed(Blocks.flower_pot).setUnlocalizedName("flowerPot").setCreativeTab(CreativeTabs.tabDecorations));
    /* 1579 */ registerItem(391, "carrot", new ItemSeedFood(3, 0.6F, Blocks.carrots, Blocks.farmland).setUnlocalizedName("carrots"));
    /* 1580 */ registerItem(392, "potato", new ItemSeedFood(1, 0.3F, Blocks.potatoes, Blocks.farmland).setUnlocalizedName("potato"));
    /* 1581 */ registerItem(393, "baked_potato", new ItemFood(5, 0.6F, false).setUnlocalizedName("potatoBaked"));
    /* 1582 */ registerItem(394, "poisonous_potato", new ItemFood(2, 0.3F, false).setPotionEffect(Potion.poison.id, 5, 0, 0.6F).setUnlocalizedName("potatoPoisonous"));
    /* 1583 */ registerItem(395, "map", new ItemEmptyMap().setUnlocalizedName("emptyMap"));
    /* 1584 */ registerItem(396, "golden_carrot", new ItemFood(6, 1.2F, false).setUnlocalizedName("carrotGolden").setPotionEffect("-0+1+2-3+13&4-4").setCreativeTab(CreativeTabs.tabBrewing));
    /* 1585 */ registerItem(397, "skull", new ItemSkull().setUnlocalizedName("skull"));
    /* 1586 */ registerItem(398, "carrot_on_a_stick", new ItemCarrotOnAStick().setUnlocalizedName("carrotOnAStick"));
    /* 1587 */ registerItem(399, "nether_star", new ItemSimpleFoiled().setUnlocalizedName("netherStar").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1588 */ registerItem(400, "pumpkin_pie", new ItemFood(8, 0.3F, false).setUnlocalizedName("pumpkinPie").setCreativeTab(CreativeTabs.tabFood));
    /* 1589 */ registerItem(401, "fireworks", new ItemFirework().setUnlocalizedName("fireworks"));
    /* 1590 */ registerItem(402, "firework_charge", new ItemFireworkCharge().setUnlocalizedName("fireworksCharge").setCreativeTab(CreativeTabs.tabMisc));
    /* 1591 */ registerItem(403, "enchanted_book", new ItemEnchantedBook().setMaxStackSize(1).setUnlocalizedName("enchantedBook"));
    /* 1592 */ registerItem(404, "comparator", new ItemReed(Blocks.unpowered_comparator).setUnlocalizedName("comparator").setCreativeTab(CreativeTabs.tabRedstone));
    /* 1593 */ registerItem(405, "netherbrick", new Item().setUnlocalizedName("netherbrick").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1594 */ registerItem(406, "quartz", new Item().setUnlocalizedName("netherquartz").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1595 */ registerItem(407, "tnt_minecart", new ItemMinecart(EntityMinecart.EnumMinecartType.TNT).setUnlocalizedName("minecartTnt"));
    /* 1596 */ registerItem(408, "hopper_minecart", new ItemMinecart(EntityMinecart.EnumMinecartType.HOPPER).setUnlocalizedName("minecartHopper"));
    /* 1597 */ registerItem(409, "prismarine_shard", new Item().setUnlocalizedName("prismarineShard").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1598 */ registerItem(410, "prismarine_crystals", new Item().setUnlocalizedName("prismarineCrystals").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1599 */ registerItem(411, "rabbit", new ItemFood(3, 0.3F, true).setUnlocalizedName("rabbitRaw"));
    /* 1600 */ registerItem(412, "cooked_rabbit", new ItemFood(5, 0.6F, true).setUnlocalizedName("rabbitCooked"));
    /* 1601 */ registerItem(413, "rabbit_stew", new ItemSoup(10).setUnlocalizedName("rabbitStew"));
    /* 1602 */ registerItem(414, "rabbit_foot", new Item().setUnlocalizedName("rabbitFoot").setPotionEffect("+0+1-2+3&4-4+13").setCreativeTab(CreativeTabs.tabBrewing));
    /* 1603 */ registerItem(415, "rabbit_hide", new Item().setUnlocalizedName("rabbitHide").setCreativeTab(CreativeTabs.tabMaterials));
    /* 1604 */ registerItem(416, "armor_stand", new ItemArmorStand().setUnlocalizedName("armorStand").setMaxStackSize(16));
    /* 1605 */ registerItem(417, "iron_horse_armor", new Item().setUnlocalizedName("horsearmormetal").setMaxStackSize(1).setCreativeTab(CreativeTabs.tabMisc));
    /* 1606 */ registerItem(418, "golden_horse_armor", new Item().setUnlocalizedName("horsearmorgold").setMaxStackSize(1).setCreativeTab(CreativeTabs.tabMisc));
    /* 1607 */ registerItem(419, "diamond_horse_armor", new Item().setUnlocalizedName("horsearmordiamond").setMaxStackSize(1).setCreativeTab(CreativeTabs.tabMisc));
    /* 1608 */ registerItem(420, "lead", new ItemLead().setUnlocalizedName("leash"));
    /* 1609 */ registerItem(421, "name_tag", new ItemNameTag().setUnlocalizedName("nameTag"));
    /* 1610 */ registerItem(422, "command_block_minecart", new ItemMinecart(EntityMinecart.EnumMinecartType.COMMAND_BLOCK).setUnlocalizedName("minecartCommandBlock").setCreativeTab((CreativeTabs)null));
    /* 1611 */ registerItem(423, "mutton", new ItemFood(2, 0.3F, true).setUnlocalizedName("muttonRaw"));
    /* 1612 */ registerItem(424, "cooked_mutton", new ItemFood(6, 0.8F, true).setUnlocalizedName("muttonCooked"));
    /* 1613 */ registerItem(425, "banner", new ItemBanner().setUnlocalizedName("banner"));
    /* 1614 */ registerItem(427, "spruce_door", new ItemDoor(Blocks.spruce_door).setUnlocalizedName("doorSpruce"));
    /* 1615 */ registerItem(428, "birch_door", new ItemDoor(Blocks.birch_door).setUnlocalizedName("doorBirch"));
    /* 1616 */ registerItem(429, "jungle_door", new ItemDoor(Blocks.jungle_door).setUnlocalizedName("doorJungle"));
    /* 1617 */ registerItem(430, "acacia_door", new ItemDoor(Blocks.acacia_door).setUnlocalizedName("doorAcacia"));
    /* 1618 */ registerItem(431, "dark_oak_door", new ItemDoor(Blocks.dark_oak_door).setUnlocalizedName("doorDarkOak"));
    /* 1619 */ registerItem(2256, "record_13", new ItemRecord("13").setUnlocalizedName("record"));
    /* 1620 */ registerItem(2257, "record_cat", new ItemRecord("cat").setUnlocalizedName("record"));
    /* 1621 */ registerItem(2258, "record_blocks", new ItemRecord("blocks").setUnlocalizedName("record"));
    /* 1622 */ registerItem(2259, "record_chirp", new ItemRecord("chirp").setUnlocalizedName("record"));
    /* 1623 */ registerItem(2260, "record_far", new ItemRecord("far").setUnlocalizedName("record"));
    /* 1624 */ registerItem(2261, "record_mall", new ItemRecord("mall").setUnlocalizedName("record"));
    /* 1625 */ registerItem(2262, "record_mellohi", new ItemRecord("mellohi").setUnlocalizedName("record"));
    /* 1626 */ registerItem(2263, "record_stal", new ItemRecord("stal").setUnlocalizedName("record"));
    /* 1627 */ registerItem(2264, "record_strad", new ItemRecord("strad").setUnlocalizedName("record"));
    /* 1628 */ registerItem(2265, "record_ward", new ItemRecord("ward").setUnlocalizedName("record"));
    /* 1629 */ registerItem(2266, "record_11", new ItemRecord("11").setUnlocalizedName("record"));
    /* 1630 */ registerItem(2267, "record_wait", new ItemRecord("wait").setUnlocalizedName("record"));
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ private static void registerItemBlock(Block blockIn)
    /* */ {
    /* 1638 */ registerItemBlock(blockIn, new ItemBlock(blockIn));
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ protected static void registerItemBlock(Block blockIn, Item itemIn)
    /* */ {
    /* 1646 */ registerItem(Block.getIdFromBlock(blockIn), (ResourceLocation)Block.blockRegistry.getNameForObject(blockIn), itemIn);
    /* 1647 */ BLOCK_TO_ITEM.put(blockIn, itemIn);
    /* */ }
    /* */
    /* */ private static void registerItem(int id, String textualID, Item itemIn)
    /* */ {
    /* 1652 */ registerItem(id, new ResourceLocation(textualID), itemIn);
    /* */ }
    /* */
    /* */
    /* */
    /* 1657 */ private static void registerItem(int id, ResourceLocation textualID, Item itemIn) { itemRegistry.register(id, textualID, itemIn); }
    /* */
    /* */ public void onUpdate(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected) {}
    /* */
    /* */ public static enum ToolMaterial {
    /* 1662 */ WOOD(0, 59, 2.0F, 0.0F, 15),
    /* 1663 */ STONE(1, 131, 4.0F, 1.0F, 5),
    /* 1664 */ IRON(2, 250, 6.0F, 2.0F, 14),
    /* 1665 */ EMERALD(3, 1561, 8.0F, 3.0F, 10),
    /* 1666 */ GOLD(0, 32, 12.0F, 0.0F, 22);
    /* */
    /* */
    /* */ private final int harvestLevel;
    /* */
    /* */ private final int maxUses;
    /* */
    /* */ private final float efficiencyOnProperMaterial;
    /* */
    /* */ private final float damageVsEntity;
    /* */
    /* */ private final int enchantability;
    /* */
    /* */ @Deprecated
    /* 1680 */ public Item customCraftingMaterial = null;
    /* 1681 */ private ItemStack repairMaterial = null;
    /* */
    /* */ private ToolMaterial(int harvestLevel, int maxUses, float efficiency, float damageVsEntity, int enchantability)
    /* */ {
    /* 1685 */ this.harvestLevel = harvestLevel;
    /* 1686 */ this.maxUses = maxUses;
    /* 1687 */ this.efficiencyOnProperMaterial = efficiency;
    /* 1688 */ this.damageVsEntity = damageVsEntity;
    /* 1689 */ this.enchantability = enchantability;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public int getMaxUses()
    /* */ {
    /* 1697 */ return this.maxUses;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public float getEfficiencyOnProperMaterial()
    /* */ {
    /* 1705 */ return this.efficiencyOnProperMaterial;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public float getDamageVsEntity()
    /* */ {
    /* 1713 */ return this.damageVsEntity;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public int getHarvestLevel()
    /* */ {
    /* 1721 */ return this.harvestLevel;
    /* */ }
    /* */
    /* */
    /* */
    /* */
    /* */ public int getEnchantability()
    /* */ {
    /* 1729 */ return this.enchantability;
    /* */ }
    /* */
    /* */ @Deprecated
    /* */ public Item getRepairItem()
    /* */ {
    /* 1735 */ switch (Item.18.$SwitchMap$net$minecraft$item$Item$ToolMaterial[ordinal()]) {
    /* */ case 1:
    /* 1737 */ return Item.getItemFromBlock(Blocks.planks);
    /* 1738 */ case 2: return Item.getItemFromBlock(Blocks.cobblestone);
    /* 1739 */ case 3: return Items.gold_ingot;
    /* 1740 */ case 4: return Items.iron_ingot;
    /* 1741 */ case 5: return Items.diamond; }
    /* 1742 */ return this.customCraftingMaterial;
    /* */ }
    /* */
    /* */
    /* */ public ToolMaterial setRepairItem(ItemStack stack)
    /* */ {
    /* 1748 */ if ((this.repairMaterial != null) || (this.customCraftingMaterial != null)) throw new RuntimeException("Can not change already set repair material");
    /* 1749 */ if ((this == WOOD) || (this == STONE) || (this == GOLD) || (this == IRON) || (this == EMERALD)) throw new RuntimeException("Can not change vanilla tool repair materials");
    /* 1750 */ this.repairMaterial = stack;
    /* 1751 */ this.customCraftingMaterial = stack.getItem();
    /* 1752 */ return this;
    /* */ }
    /* */
    /* */ public ItemStack getRepairItemStack()
    /* */ {
    /* 1757 */ if (this.repairMaterial != null) return this.repairMaterial;
    /* 1758 */ Item ret = getRepairItem();
    /* 1759 */ if (ret == null) return null;
    /* 1760 */ this.repairMaterial = new ItemStack(ret, 1, 32767);
    /* 1761 */ return this.repairMaterial;
    /* */ }
    /* */ }
    /* */
    /* */ public void onCreated(ItemStack stack, World worldIn, EntityPlayer playerIn) {}
    /* */
    /* */ public void onPlayerStoppedUsing(ItemStack stack, World worldIn, EntityPlayer playerIn, int timeLeft) {}
    /* */
    /* */ @SideOnly(Side.CLIENT)
    /* */ public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) {}
    /* */
    /* */ public void onUsingTick(ItemStack stack, EntityPlayer player, int count) {}
    /* */
    /* */ public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {}
    /* */
    /* */ @SideOnly(Side.CLIENT)
    /* */ public void renderHelmetOverlay(ItemStack stack, EntityPlayer player, ScaledResolution resolution, float partialTicks) {}
    /* */ }


    /* Location: C:\Users\Peter Paul\.gradle\caches\minecraft\net\minecraftforge\forge\1.8.9-11.15.1.1902-1.8.9\stable\22\forgeSrc-1.8.9-11.15.1.1902-1.8.9.jar!\net\minecraft\item\Item.class
    * Java compiler version: 6 (50.0)
    * JD-Core Version: 0.7.1
    */


    Posted in: Modification Development
  • 0

    posted a message on Where is the compass source code??

    Does anyone know where the source code for compasses is located?

    I can't find it anywhere, and already checked:

    • net.minecraft.item
    • net.minecraft.entity.item
    • net.minecraft.entity.player
    • net.minecraft.world
    • net.minecraft.pathfinding
    • net.minecraft.inventory

    and I can't go on like this! :(

    Posted in: Modification Development
  • 0

    posted a message on Entity Motion Not Updating

    Oh yeah, I planned on doing that before I posted it :P

    Posted in: Modification Development
  • 0

    posted a message on Entity Motion Not Updating

    That is what I looked at xD


    But it's okay now, I figured out how to do it :)

    Posted in: Modification Development
  • 0

    posted a message on Entity Motion Not Updating

    I got it :o


    List<EntityMob> list = worldIn.getEntitiesWithinAABB(EntityMob.class, new AxisAlignedBB((float) (xCoord + 40), (float) (yCoord + 40), (float) (zCoord + 40), (float) (xCoord - 40), (float) (yCoord - 4), (float) (zCoord - 40)));
    		
    		if(!list.isEmpty()){
    			
    			EntityMob target = list.get(0);
    		
    			EntityGrenade entitysnowball = new EntityGrenade(worldIn, xCoord, yCoord, zCoord);
    	        double d0 = target.posY + (double)target.getEyeHeight() - 1.100000023841858D;
    	        double d1 = target.posX - pos.getX();
    	        double d2 = d0 - entitysnowball.posY;
    	        double d3 = target.posZ - pos.getZ();
    	        float f = MathHelper.sqrt_double(d1 * d1 + d3 * d3) * 0.2F;
    	        entitysnowball.setThrowableHeading(d1, d2 + (double)f, d3, 4, 0);
    	        worldIn.spawnEntityInWorld(entitysnowball);
    		}
    Posted in: Modification Development
  • To post a comment, please .