Class ItemNameTag

java.lang.Object
net.minecraft.src.Item
net.minecraft.src.ItemNameTag

public class ItemNameTag extends Item
  • Constructor Details

    • ItemNameTag

      public ItemNameTag(int par1)
  • Method Details

    • itemInteractionForEntity

      public boolean itemInteractionForEntity(ItemStack stack, EntityPlayer par2EntityPlayer, EntityLivingBase entity)
      Returns true if the item can be used on the given entity, e.g. shears on sheep.
      Overrides:
      itemInteractionForEntity in class Item
    • onItemRightClick

      public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
      Description copied from class: Item
      // +++START EDIT+++ // ---END EDIT--- Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer
      Overrides:
      onItemRightClick in class Item