类 WrittenBookItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.WrittenBookItem
- 所有已实现的接口:
FeatureElement
,ItemLike
,IForgeItem
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.item.Item
Item.Properties
-
字段概要
字段修饰符和类型字段说明static final int
static final int
static final int
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final int
static final int
从类继承的字段 net.minecraft.world.item.Item
BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
appendHoverText
(ItemStack pStack, Level pLevel, List<Component> pTooltip, TooltipFlag pFlag) static int
getGeneration
(ItemStack pBookStack) static int
getPageCount
(ItemStack pBookSTack) boolean
static boolean
makeSureTagIsValid
(CompoundTag pCompoundTag) static boolean
resolveBookComponents
(ItemStack pBookStack, CommandSourceStack pResolvingSource, Player pResolvingPlayer) private static String
resolvePage
(CommandSourceStack pResolvingSource, Player pResolvingPlayer, String pResolvingPageContents) use
(Level pLevel, Player pPlayer, InteractionHand pHand) useOn
(UseOnContext pContext) 从类继承的方法 net.minecraft.world.item.Item
asItem, 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, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, useOnRelease, verifyTagAfterLoad
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, 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, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, initCapabilities, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
-
字段详细资料
-
TITLE_LENGTH
public static final int TITLE_LENGTH- 另请参阅:
-
TITLE_MAX_LENGTH
public static final int TITLE_MAX_LENGTH- 另请参阅:
-
PAGE_EDIT_LENGTH
public static final int PAGE_EDIT_LENGTH- 另请参阅:
-
PAGE_LENGTH
public static final int PAGE_LENGTH- 另请参阅:
-
MAX_PAGES
public static final int MAX_PAGES- 另请参阅:
-
MAX_GENERATION
public static final int MAX_GENERATION- 另请参阅:
-
TAG_TITLE
- 另请参阅:
-
TAG_FILTERED_TITLE
- 另请参阅:
-
TAG_AUTHOR
- 另请参阅:
-
TAG_PAGES
- 另请参阅:
-
TAG_FILTERED_PAGES
- 另请参阅:
-
TAG_GENERATION
- 另请参阅:
-
TAG_RESOLVED
- 另请参阅:
-
-
构造器详细资料
-
WrittenBookItem
-
-
方法详细资料
-
makeSureTagIsValid
-
getGeneration
-
getPageCount
-
getName
-
appendHoverText
public void appendHoverText(ItemStack pStack, @Nullable Level pLevel, List<Component> pTooltip, TooltipFlag pFlag) - 覆盖:
appendHoverText
在类中Item
-
useOn
-
use
-
resolveBookComponents
public static boolean resolveBookComponents(ItemStack pBookStack, @Nullable CommandSourceStack pResolvingSource, @Nullable Player pResolvingPlayer) -
resolvePage
private static String resolvePage(@Nullable CommandSourceStack pResolvingSource, @Nullable Player pResolvingPlayer, String pResolvingPageContents) -
isFoil
-