Package net.minecraft.world.item
Class WrittenBookItem
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Item>
net.minecraft.world.item.Item
net.minecraft.world.item.WrittenBookItem
- All Implemented Interfaces:
ItemLike
,IForgeItem
,IForgeRegistryEntry<Item>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
Item.Properties
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
static int
static int
static int
static String
static String
static String
static String
static String
static String
static String
static int
static int
Fields inherited from class net.minecraft.world.item.Item
BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, category, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendHoverText(ItemStack p_43457_, Level p_43458_, List<Component> p_43459_, TooltipFlag p_43460_)
static int
getGeneration(ItemStack p_43474_)
static int
getPageCount(ItemStack p_43478_)
boolean
static boolean
makeSureTagIsValid(CompoundTag p_43472_)
static boolean
resolveBookComponents(ItemStack p_43462_, CommandSourceStack p_43463_, Player p_43464_)
private static String
resolvePage(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.Item
allowdedIn, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, fillItemCategory, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getEquipSound, getFoodProperties, getId, getItemCategory, getMaxDamage, getMaxStackSize, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTags, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, shouldOverrideMultiplayerNbt, toString, useOnRelease, verifyTagAfterLoad
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canPerformAction, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getHighlightTip, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getSweepHitBox, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBar
-
Field Details
-
TITLE_LENGTH
public static final int TITLE_LENGTH- See Also:
- Constant Field Values
-
TITLE_MAX_LENGTH
public static final int TITLE_MAX_LENGTH- See Also:
- Constant Field Values
-
PAGE_EDIT_LENGTH
public static final int PAGE_EDIT_LENGTH- See Also:
- Constant Field Values
-
PAGE_LENGTH
public static final int PAGE_LENGTH- See Also:
- Constant Field Values
-
MAX_PAGES
public static final int MAX_PAGES- See Also:
- Constant Field Values
-
MAX_GENERATION
public static final int MAX_GENERATION- See Also:
- Constant Field Values
-
TAG_TITLE
- See Also:
- Constant Field Values
-
TAG_FILTERED_TITLE
- See Also:
- Constant Field Values
-
TAG_AUTHOR
- See Also:
- Constant Field Values
-
TAG_PAGES
- See Also:
- Constant Field Values
-
TAG_FILTERED_PAGES
- See Also:
- Constant Field Values
-
TAG_GENERATION
- See Also:
- Constant Field Values
-
TAG_RESOLVED
- See Also:
- Constant Field Values
-
-
Constructor Details
-
WrittenBookItem
-
-
Method Details
-
makeSureTagIsValid
-
getGeneration
-
getPageCount
-
getName
-
appendHoverText
public void appendHoverText(ItemStack p_43457_, @Nullable Level p_43458_, List<Component> p_43459_, TooltipFlag p_43460_)- Overrides:
appendHoverText
in classItem
-
useOn
-
use
public InteractionResultHolder<ItemStack> use(Level p_43468_, Player p_43469_, InteractionHand p_43470_) -
resolveBookComponents
public static boolean resolveBookComponents(ItemStack p_43462_, @Nullable CommandSourceStack p_43463_, @Nullable Player p_43464_) -
resolvePage
private static String resolvePage(@Nullable CommandSourceStack p_151249_, @Nullable Player p_151250_, String p_151251_) -
isFoil
-