Class WrittenBookItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.WrittenBookItem

public class WrittenBookItem extends Item
Mappings:
Namespace Name
official acx
intermediary net/minecraft/class_1104
named net/minecraft/item/WrittenBookItem
  • Constructor Details

    • WrittenBookItem

      public WrittenBookItem()
      Mappings:
      Namespace Name Mixin selector
      official <init> Labm;<init>()V
      intermediary <init> Lnet/minecraft/class_1069;<init>()V
      named <init> Lnet/minecraft/item/Item;<init>()V
  • Method Details

    • isValid

      public static boolean isValid(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lacx;a(Ldg;)Z
      intermediary method_3467 Lnet/minecraft/class_1104;method_3467(Lnet/minecraft/class_322;)Z
      named isValid Lnet/minecraft/item/WrittenBookItem;isValid(Lnet/minecraft/nbt/NbtCompound;)Z
    • getDisplayName

      public String getDisplayName(ItemStack stack)
      Overrides:
      getDisplayName in class Item
      Mappings:
      Namespace Name Mixin selector
      official n Labm;n(Labo;)Ljava/lang/String;
      intermediary method_3383 Lnet/minecraft/class_1069;method_3383(Lnet/minecraft/class_1071;)Ljava/lang/String;
      named getDisplayName Lnet/minecraft/item/Item;getDisplayName(Lnet/minecraft/item/ItemStack;)Ljava/lang/String;
    • appendTooltip

      @Environment(CLIENT) public void appendTooltip(ItemStack stack, PlayerEntity player, List lines, boolean advanced)
      Overrides:
      appendTooltip in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Labm;a(Labo;Lxk;Ljava/util/List;Z)V
      intermediary method_3352 Lnet/minecraft/class_1069;method_3352(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Ljava/util/List;Z)V
      named appendTooltip Lnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;Z)V
    • onStartUse

      public ItemStack onStartUse(ItemStack stack, World world, PlayerEntity player)
      Overrides:
      onStartUse in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Labm;a(Labo;Lafm;Lxk;)Labo;
      intermediary method_3358 Lnet/minecraft/class_1069;method_3358(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;)Lnet/minecraft/class_1071;
      named onStartUse Lnet/minecraft/item/Item;onStartUse(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
    • shouldSyncNbtToClient

      public boolean shouldSyncNbtToClient()
      Overrides:
      shouldSyncNbtToClient in class Item
      Mappings:
      Namespace Name Mixin selector
      official s Labm;s()Z
      intermediary method_3391 Lnet/minecraft/class_1069;method_3391()Z
      named shouldSyncNbtToClient Lnet/minecraft/item/Item;shouldSyncNbtToClient()Z
    • hasEnchantmentGlint

      @Environment(CLIENT) public boolean hasEnchantmentGlint(ItemStack stack)
      Returns whether the current item has an enchantment glint. Used by enchanted golden apples and enchanted items.
      Overrides:
      hasEnchantmentGlint in class Item
      See Also:
      • net.minecraft.item.GoldenAppleItem
      Mappings:
      Namespace Name Mixin selector
      official e Labm;e(Labo;)Z
      intermediary method_3374 Lnet/minecraft/class_1069;method_3374(Lnet/minecraft/class_1071;)Z
      named hasEnchantmentGlint Lnet/minecraft/item/Item;hasEnchantmentGlint(Lnet/minecraft/item/ItemStack;)Z