public class ItemEnchantedBook extends Item
Item.ToolMaterial
bFull3D, hasSubtypes, itemModifierUUID, itemRand, itemRegistry, maxStackSize
Constructor and Description |
---|
ItemEnchantedBook() |
Modifier and Type | Method and Description |
---|---|
void |
addEnchantment(ItemStack stack,
EnchantmentData enchantment)
Adds an stored enchantment to an enchanted book ItemStack
|
void |
addInformation(ItemStack stack,
EntityPlayer playerIn,
java.util.List<java.lang.String> tooltip,
boolean advanced)
allows items to add custom lines of information to the mouseover description
|
void |
getAll(Enchantment enchantment,
java.util.List<ItemStack> list) |
ItemStack |
getEnchantedItemStack(EnchantmentData data)
Returns the ItemStack of an enchanted version of this item.
|
NBTTagList |
getEnchantments(ItemStack stack) |
WeightedRandomChestContent |
getRandom(java.util.Random rand) |
WeightedRandomChestContent |
getRandom(java.util.Random rand,
int minChance,
int maxChance,
int weight) |
EnumRarity |
getRarity(ItemStack stack)
Return an item rarity from EnumRarity
|
boolean |
hasEffect(ItemStack stack) |
boolean |
isItemTool(ItemStack stack)
Checks isDamagable and if it cannot be stacked
|
canHarvestBlock, canItemEditBlocks, getByNameOrId, getColorFromItemStack, getContainerItem, getCreativeTab, getHasSubtypes, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxItemUseDuration, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getShareTag, getStrVsBlock, getSubItems, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hitEntity, isDamageable, isFull3D, isMap, isPotionIngredient, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemRightClick, onItemUse, onItemUseFinish, onPlayerStoppedUsing, onUpdate, registerItemBlock, registerItems, setContainerItem, setCreativeTab, setFull3D, setHasSubtypes, setMaxDamage, setMaxStackSize, setPotionEffect, setUnlocalizedName, shouldRotateAroundWhenRendering, updateItemStackNBT
public boolean isItemTool(ItemStack stack)
isItemTool
in class Item
public EnumRarity getRarity(ItemStack stack)
public NBTTagList getEnchantments(ItemStack stack)
public void addInformation(ItemStack stack, EntityPlayer playerIn, java.util.List<java.lang.String> tooltip, boolean advanced)
addInformation
in class Item
public void addEnchantment(ItemStack stack, EnchantmentData enchantment)
public ItemStack getEnchantedItemStack(EnchantmentData data)
public void getAll(Enchantment enchantment, java.util.List<ItemStack> list)
public WeightedRandomChestContent getRandom(java.util.Random rand)
public WeightedRandomChestContent getRandom(java.util.Random rand, int minChance, int maxChance, int weight)