001 package net.minecraft.item; 002 003 public class ItemBook extends Item 004 { 005 public ItemBook(int par1) 006 { 007 super(par1); 008 } 009 010 /** 011 * Checks isDamagable and if it cannot be stacked 012 */ 013 public boolean isItemTool(ItemStack par1ItemStack) 014 { 015 return par1ItemStack.stackSize == 1; 016 } 017 018 /** 019 * Return the enchantability factor of the item, most of the time is based on material. 020 */ 021 public int getItemEnchantability() 022 { 023 return 1; 024 } 025 }