Package net.minecraft.item
Class WrittenBookItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.WrittenBookItem
- All Implemented Interfaces:
Itemable
- Mappings:
Namespace Name official ausintermediary net/minecraft/class_1104named net/minecraft/item/WrittenBookItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.Settings -
Field Summary
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER, BLOCK_ITEMS, itemGroup, RANDOM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltips(ItemStack stack, World world, List<Text> tooltip, TooltipContext tooltipContext) static intgetGeneration(ItemStack stack) booleanhasEnchantmentGlint(ItemStack stack) Returns whether the current item has an enchantment glint.static booleanisValid(NbtCompound nbt) method_13649(World world, PlayerEntity player, Hand hand) method_3383(ItemStack itemStack) private voidresolveContents(ItemStack stack, PlayerEntity player) Methods inherited from class net.minecraft.item.Item
addProperty, appendToItemGroup, beforeBlockBreak, byRawId, canAddTo, canRepair, computeTranslationKey, fromBlock, getBlockBreakingSpeed, getDefaultStack, getEnchantability, getItem, getItemGroup, getMaxCount, getMaxDamage, getMaxUseTime, getProperty, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasProperties, inventoryTick, isDamageable, isEnchantable, isFood, isNetworkSynced, method_16075, method_16080, method_3346, method_3353, method_3356, method_3359, method_3367, method_6326, onCraft, onEntityHit, onHit, postProcessNbt, registerBlockItem, setup, shouldSyncNbtToClient, useOnBlock
-
Constructor Details
-
WrittenBookItem
- Mappings:
Namespace Name Mixin selector official <init>Lata;<init>(Lata$a;)Vintermediary <init>Lnet/minecraft/class_1069;<init>(Lnet/minecraft/class_1069$class_3555;)Vnamed <init>Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
-
-
Method Details
-
isValid
- Mappings:
Namespace Name Mixin selector official bLaus;b(Lgy;)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 eLaus;e(Late;)Iintermediary method_8440Lnet/minecraft/class_1104;method_8440(Lnet/minecraft/class_1071;)Inamed getGenerationLnet/minecraft/item/WrittenBookItem;getGeneration(Lnet/minecraft/item/ItemStack;)I
-
method_3383
- Overrides:
method_3383in classItem- Mappings:
Namespace Name Mixin selector official iLata;i(Late;)Lij;intermediary method_3383Lnet/minecraft/class_1069;method_3383(Lnet/minecraft/class_1071;)Lnet/minecraft/class_1982;named method_3383Lnet/minecraft/item/Item;method_3383(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/text/Text;
-
appendTooltips
@Environment(CLIENT) public void appendTooltips(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext tooltipContext) - Overrides:
appendTooltipsin classItem- Mappings:
Namespace Name Mixin selector official aLata;a(Late;Laxy;Ljava/util/List;Laum;)Vintermediary method_14234Lnet/minecraft/class_1069;method_14234(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Ljava/util/List;Lnet/minecraft/class_3191;)Vnamed appendTooltipsLnet/minecraft/item/Item;appendTooltips(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/client/TooltipContext;)V
-
method_13649
- Overrides:
method_13649in classItem- Mappings:
Namespace Name Mixin selector official aLata;a(Laxy;Laog;Ladk;)Ladn;intermediary method_13649Lnet/minecraft/class_1069;method_13649(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;)Lnet/minecraft/class_2963;named method_13649Lnet/minecraft/item/Item;method_13649(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;
-
resolveContents
- Mappings:
Namespace Name Mixin selector official aLaus;a(Late;Laog;)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 bLata;b(Late;)Zintermediary method_3374Lnet/minecraft/class_1069;method_3374(Lnet/minecraft/class_1071;)Znamed hasEnchantmentGlintLnet/minecraft/item/Item;hasEnchantmentGlint(Lnet/minecraft/item/ItemStack;)Z
-