Package net.minecraft.item
Class WrittenBookItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.WrittenBookItem
- Mappings:
Namespace Name official afdintermediary net/minecraft/class_1104named 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, ATTACK_SPEED_MODIFIER, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(ItemStack stack, PlayerEntity player, List<String> lines, boolean advanced) getDisplayName(ItemStack stack) static intgetGeneration(ItemStack stack) booleanhasEnchantmentGlint(ItemStack stack) Returns whether the current item has an enchantment glint.static booleanisValid(NbtCompound nbt) method_11373(ItemStack itemStack, World world, PlayerEntity playerEntity, Hand hand) private voidresolveContents(ItemStack stack, PlayerEntity player) Methods inherited from class net.minecraft.item.Item
addProperty, appendItemStacks, byRawId, canRepair, fromBlock, getBlockBreakingSpeed, getEnchantability, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getProperty, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasProperties, hasSubTypes, inventoryTick, isDamageable, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, method_3346, method_3353, method_3355, method_3356, method_3359, method_3367, method_6326, onCraft, onEntityHit, onHit, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient
-
Constructor Details
-
WrittenBookItem
public WrittenBookItem()- Mappings:
Namespace Name Mixin selector official <init>Lado;<init>()Vintermediary <init>Lnet/minecraft/class_1069;<init>()Vnamed <init>Lnet/minecraft/item/Item;<init>()V
-
-
Method Details
-
isValid
- Mappings:
Namespace Name Mixin selector official bLafd;b(Ldq;)Zintermediary method_3467Lnet/minecraft/class_1104;method_3467(Lnet/minecraft/class_322;)Znamed isValidLnet/minecraft/item/WrittenBookItem;isValid(Lnet/minecraft/nbt/NbtCompound;)Z
-
getGeneration
- Mappings:
Namespace Name Mixin selector official hLafd;h(Ladq;)Iintermediary method_8440Lnet/minecraft/class_1104;method_8440(Lnet/minecraft/class_1071;)Inamed getGenerationLnet/minecraft/item/WrittenBookItem;getGeneration(Lnet/minecraft/item/ItemStack;)I
-
getDisplayName
- Overrides:
getDisplayNamein classItem- Mappings:
Namespace Name Mixin selector official aLado;a(Ladq;)Ljava/lang/String;intermediary method_3383Lnet/minecraft/class_1069;method_3383(Lnet/minecraft/class_1071;)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 aLado;a(Ladq;Lzj;Ljava/util/List;Z)Vintermediary method_3352Lnet/minecraft/class_1069;method_3352(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Ljava/util/List;Z)Vnamed appendTooltipLnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;Z)V
-
method_11373
public TypedActionResult<ItemStack> method_11373(ItemStack itemStack, World world, PlayerEntity playerEntity, Hand hand) - Overrides:
method_11373in classItem- Mappings:
Namespace Name Mixin selector official aLado;a(Ladq;Laht;Lzj;Lqm;)Lqp;intermediary method_11373Lnet/minecraft/class_1069;method_11373(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;)Lnet/minecraft/class_2963;named method_11373Lnet/minecraft/item/Item;method_11373(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;
-
resolveContents
- Mappings:
Namespace Name Mixin selector official aLafd;a(Ladq;Lzj;)Vintermediary method_8439Lnet/minecraft/class_1104;method_8439(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;)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 i_Lado;i_(Ladq;)Zintermediary method_3374Lnet/minecraft/class_1069;method_3374(Lnet/minecraft/class_1071;)Znamed hasEnchantmentGlintLnet/minecraft/item/Item;hasEnchantmentGlint(Lnet/minecraft/item/ItemStack;)Z
-