Package net.minecraft.item
Class EnchantedBookItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.EnchantedBookItem
- All Implemented Interfaces:
ItemConvertible
public class EnchantedBookItem extends Item
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM -
Constructor Summary
Constructors Constructor Description EnchantedBookItem(Item.Settings settings) -
Method Summary
Modifier and Type Method Description static voidaddEnchantment(ItemStack stack, EnchantmentLevelEntry entry)voidappendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)voidappendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context)static ItemStackforEnchantment(EnchantmentLevelEntry info)static ListTaggetEnchantmentTag(ItemStack stack)booleanhasEnchantmentGlint(ItemStack stack)booleanisEnchantable(ItemStack stack)Methods inherited from class net.minecraft.item.Item
asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, use, useOnBlock, useOnEntity
-
Constructor Details
-
Method Details
-
hasEnchantmentGlint
- Overrides:
hasEnchantmentGlintin classItem
-
isEnchantable
- Overrides:
isEnchantablein classItem
-
getEnchantmentTag
-
appendTooltip
@Environment(CLIENT) public void appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)- Overrides:
appendTooltipin classItem
-
addEnchantment
-
forEnchantment
-
appendStacks
- Overrides:
appendStacksin classItem
-