Class ItemEnchantedBook

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

public class ItemEnchantedBook extends Item
  • Constructor Details

    • ItemEnchantedBook

      public ItemEnchantedBook(int par1)
  • Method Details

    • hasEffect

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

      public boolean isItemTool(ItemStack par1ItemStack)
      Checks isDamagable and if it cannot be stacked
      Overrides:
      isItemTool in class Item
    • getRarity

      public EnumRarity getRarity(ItemStack par1ItemStack)
      Return an item rarity from EnumRarity
      Overrides:
      getRarity in class Item
    • func_92110_g

      public NBTTagList func_92110_g(ItemStack par1ItemStack)
    • addEnchantment

      public void addEnchantment(ItemStack par1ItemStack, EnchantmentData par2EnchantmentData)
      Adds an stored enchantment to an enchanted book ItemStack
    • getEnchantedItemStack

      public ItemStack getEnchantedItemStack(EnchantmentData par1EnchantmentData)
      Returns the ItemStack of an enchanted version of this item.
    • func_92113_a

      public void func_92113_a(Enchantment par1Enchantment, List par2List)
    • func_92114_b

      public WeightedRandomChestContent func_92114_b(Random par1Random)
    • func_92112_a

      public WeightedRandomChestContent func_92112_a(Random par1Random, int par2, int par3, int par4)
    • onItemRightClick

      public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player)
      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
    • initializeStackOnGiveCommand

      public void initializeStackOnGiveCommand(Random rand, ItemStack stack)
      Overrides:
      initializeStackOnGiveCommand in class Item
    • addInformation

      @Environment(CLIENT) public void addInformation(ItemStack itemStack, EntityPlayer player, List infoList, boolean bAdvamcedToolTips)
      Description copied from class: Item
      allows items to add custom lines of information to the mouseover description
      Overrides:
      addInformation in class Item