public class BookItem extends Item
Item.Settings
ATTACK_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, useOnEntity
public BookItem(Item.Settings settings)
public boolean isEnchantable(ItemStack stack)
isEnchantable
in class Item
public int getEnchantability()
If the value of this method is 0, the item cannot be enchanted using an enchanting table.
getEnchantability
in class Item