public class BookItem extends Item
Item.SettingsATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM| Constructor and Description |
|---|
BookItem(Item.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEnchantability()
Gets the enchantability of an item.
|
boolean |
isEnchantable(ItemStack stack) |
appendStacks, appendTooltip, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, raycast, shouldSyncTagToClient, toString, usageTick, use, useOnBlock, useOnEntitypublic BookItem(Item.Settings settings)
public boolean isEnchantable(ItemStack stack)
isEnchantable in class Itempublic int getEnchantability()
If the value of this method is 0, the item cannot be enchanted using an enchanting table.
getEnchantability in class Item