Class ItemEditableBook

java.lang.Object
net.minecraft.src.Item
net.minecraft.src.ItemEditableBook
Direct Known Subclasses:
AncientProphecyItem

public class ItemEditableBook extends Item
  • Constructor Details

    • ItemEditableBook

      public ItemEditableBook(int par1)
  • Method Details

    • validBookTagContents

      public static boolean validBookTagContents(NBTTagCompound par0NBTTagCompound)
    • getItemDisplayName

      public String getItemDisplayName(ItemStack par1ItemStack)
      Overrides:
      getItemDisplayName in class Item
    • addInformation

      public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
      allows items to add custom lines of information to the mouseover description
      Overrides:
      addInformation in class Item
    • onItemRightClick

      public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
      Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer
      Overrides:
      onItemRightClick in class Item
    • getShareTag

      public boolean getShareTag()
      If this function returns true (or the item is damageable), the ItemStack's NBT tag will be sent to the client.
      Overrides:
      getShareTag in class Item
    • hasEffect

      public boolean hasEffect(ItemStack par1ItemStack)
      Overrides:
      hasEffect in class Item