Package net.minecraft.world.item
Class WrittenBookItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.WrittenBookItem
- All Implemented Interfaces:
- FeatureElement,- ItemLike,- IItemExtension
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.item.ItemItem.Properties
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intFields inherited from class net.minecraft.world.item.ItemBASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidappendHoverText(ItemStack p_43457_, Level p_43458_, List<Component> p_43459_, TooltipFlag p_43460_) static intgetGeneration(ItemStack p_43474_) static intgetPageCount(ItemStack p_43478_) booleanstatic booleanmakeSureTagIsValid(CompoundTag p_43472_) static booleanresolveBookComponents(ItemStack p_43462_, CommandSourceStack p_43463_, Player p_43464_) private static StringresolvePage(CommandSourceStack p_151249_, Player p_151250_, String p_151251_) use(Level p_43468_, Player p_43469_, InteractionHand p_43470_) useOn(UseOnContext p_43466_) Methods inherited from class net.minecraft.world.item.ItemasItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, useOnRelease, verifyTagAfterLoadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtensioncanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
- 
Field Details- 
TITLE_LENGTHpublic static final int TITLE_LENGTH- See Also:
 
- 
TITLE_MAX_LENGTHpublic static final int TITLE_MAX_LENGTH- See Also:
 
- 
PAGE_EDIT_LENGTHpublic static final int PAGE_EDIT_LENGTH- See Also:
 
- 
PAGE_LENGTHpublic static final int PAGE_LENGTH- See Also:
 
- 
MAX_PAGESpublic static final int MAX_PAGES- See Also:
 
- 
MAX_GENERATIONpublic static final int MAX_GENERATION- See Also:
 
- 
TAG_TITLE- See Also:
 
- 
TAG_FILTERED_TITLE- See Also:
 
- 
TAG_AUTHOR- See Also:
 
- 
TAG_PAGES- See Also:
 
- 
TAG_FILTERED_PAGES- See Also:
 
- 
TAG_GENERATION- See Also:
 
- 
TAG_RESOLVED- See Also:
 
 
- 
- 
Constructor Details- 
WrittenBookItem
 
- 
- 
Method Details- 
makeSureTagIsValid
- 
getGeneration
- 
getPageCount
- 
getName
- 
appendHoverTextpublic void appendHoverText(ItemStack p_43457_, @Nullable Level p_43458_, List<Component> p_43459_, TooltipFlag p_43460_) - Overrides:
- appendHoverTextin class- Item
 
- 
useOn
- 
usepublic InteractionResultHolder<ItemStack> use(Level p_43468_, Player p_43469_, InteractionHand p_43470_) 
- 
resolveBookComponentspublic static boolean resolveBookComponents(ItemStack p_43462_, @Nullable CommandSourceStack p_43463_, @Nullable Player p_43464_) 
- 
resolvePageprivate static String resolvePage(@Nullable CommandSourceStack p_151249_, @Nullable Player p_151250_, String p_151251_) 
- 
isFoil
 
-