Package net.minecraft.item
Class WrittenBookItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.WrittenBookItem
public class WrittenBookItem extends Item
- Mappings:
Namespace Name official abdintermediary net/minecraft/class_33named net/minecraft/item/WrittenBookItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors Constructor Description WrittenBookItem() -
Method Summary
Modifier and Type Method Description voidappendTooltip(ItemStack stack, PlayerEntity player, List<String> lines, boolean advanced)StringgetDisplayName(ItemStack stack)static intgetGeneration(ItemStack stack)booleanhasEnchantmentGlint(ItemStack stack)Returns whether the current item has an enchantment glint.static booleanisValid(CompoundTag tag)ItemStackonStartUse(ItemStack stack, World world, PlayerEntity player)private voidresolveContents(ItemStack stack, PlayerEntity player)Methods inherited from class net.minecraft.item.Item
appendItemStacks, byRawId, canRepair, canUseOnEntity, fromBlock, getAttributeModifierMap, getDisplayColor, getEnchantability, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getMiningSpeedMultiplier, getRarity, getRawId, getRecipeRemainder, getStatusEffectString, getTranslationKey, getTranslationKey, getUseAction, hasStatusEffectString, hasSubTypes, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, onBlockBroken, onCraft, onEntityHit, onFinishUse, onHit, onUseStopped, postProcessTag, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncTagToClient, use
-
Constructor Details
-
WrittenBookItem
public WrittenBookItem()- Mappings:
Namespace Name Mixin selector official <init>Lzw;<init>()Vintermediary <init>Lnet/minecraft/class_2054;<init>()Vnamed <init>Lnet/minecraft/item/Item;<init>()V
-
-
Method Details
-
isValid
- Mappings:
Namespace Name Mixin selector official bLabd;b(Ldn;)Zintermediary method_30Lnet/minecraft/class_33;method_30(Lnet/minecraft/class_1405;)Znamed isValidLnet/minecraft/item/WrittenBookItem;isValid(Lnet/minecraft/nbt/CompoundTag;)Z
-
getGeneration
- Mappings:
Namespace Name Mixin selector official hLabd;h(Lzx;)Iintermediary method_31Lnet/minecraft/class_33;method_31(Lnet/minecraft/class_2056;)Inamed getGenerationLnet/minecraft/item/WrittenBookItem;getGeneration(Lnet/minecraft/item/ItemStack;)I
-
getDisplayName
- Overrides:
getDisplayNamein classItem- Mappings:
Namespace Name Mixin selector official aLzw;a(Lzx;)Ljava/lang/String;intermediary method_8256Lnet/minecraft/class_2054;method_8256(Lnet/minecraft/class_2056;)Ljava/lang/String;named getDisplayNameLnet/minecraft/item/Item;getDisplayName(Lnet/minecraft/item/ItemStack;)Ljava/lang/String;
-
appendTooltip
@Environment(CLIENT) public void appendTooltip(ItemStack stack, PlayerEntity player, List<String> lines, boolean advanced)- Overrides:
appendTooltipin classItem- Mappings:
Namespace Name Mixin selector official aLzw;a(Lzx;Lwn;Ljava/util/List;Z)Vintermediary method_8265Lnet/minecraft/class_2054;method_8265(Lnet/minecraft/class_2056;Lnet/minecraft/class_1963;Ljava/util/List;Z)Vnamed appendTooltipLnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;Z)V
-
onStartUse
- Overrides:
onStartUsein classItem- Mappings:
Namespace Name Mixin selector official aLzw;a(Lzx;Ladm;Lwn;)Lzx;intermediary method_8260Lnet/minecraft/class_2054;method_8260(Lnet/minecraft/class_2056;Lnet/minecraft/class_99;Lnet/minecraft/class_1963;)Lnet/minecraft/class_2056;named onStartUseLnet/minecraft/item/Item;onStartUse(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
-
resolveContents
- Mappings:
Namespace Name Mixin selector official aLabd;a(Lzx;Lwn;)Vintermediary method_29Lnet/minecraft/class_33;method_29(Lnet/minecraft/class_2056;Lnet/minecraft/class_1963;)Vnamed resolveContentsLnet/minecraft/item/WrittenBookItem;resolveContents(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)V
-
hasEnchantmentGlint
Returns whether the current item has an enchantment glint. Used by enchanted golden apples and enchanted items.- Overrides:
hasEnchantmentGlintin classItem- See Also:
net.minecraft.item.GoldenAppleItem- Mappings:
Namespace Name Mixin selector official fLzw;f(Lzx;)Zintermediary method_8288Lnet/minecraft/class_2054;method_8288(Lnet/minecraft/class_2056;)Znamed hasEnchantmentGlintLnet/minecraft/item/Item;hasEnchantmentGlint(Lnet/minecraft/item/ItemStack;)Z
-