Class WrittenBookItem

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

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

    • WrittenBookItem

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

    • isValid

      public static boolean isValid​(CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official b Labd;b(Ldn;)Z
      intermediary method_30 Lnet/minecraft/class_33;method_30(Lnet/minecraft/class_1405;)Z
      named isValid Lnet/minecraft/item/WrittenBookItem;isValid(Lnet/minecraft/nbt/CompoundTag;)Z
    • getGeneration

      public static int getGeneration​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official h Labd;h(Lzx;)I
      intermediary method_31 Lnet/minecraft/class_33;method_31(Lnet/minecraft/class_2056;)I
      named getGeneration Lnet/minecraft/item/WrittenBookItem;getGeneration(Lnet/minecraft/item/ItemStack;)I
    • getDisplayName

      public String getDisplayName​(ItemStack stack)
      Overrides:
      getDisplayName in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lzw;a(Lzx;)Ljava/lang/String;
      intermediary method_8256 Lnet/minecraft/class_2054;method_8256(Lnet/minecraft/class_2056;)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<String> lines, boolean advanced)
      Overrides:
      appendTooltip in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lzw;a(Lzx;Lwn;Ljava/util/List;Z)V
      intermediary method_8265 Lnet/minecraft/class_2054;method_8265(Lnet/minecraft/class_2056;Lnet/minecraft/class_1963;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 Lzw;a(Lzx;Ladm;Lwn;)Lzx;
      intermediary method_8260 Lnet/minecraft/class_2054;method_8260(Lnet/minecraft/class_2056;Lnet/minecraft/class_99;Lnet/minecraft/class_1963;)Lnet/minecraft/class_2056;
      named onStartUse Lnet/minecraft/item/Item;onStartUse(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
    • resolveContents

      private void resolveContents​(ItemStack stack, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Labd;a(Lzx;Lwn;)V
      intermediary method_29 Lnet/minecraft/class_33;method_29(Lnet/minecraft/class_2056;Lnet/minecraft/class_1963;)V
      named resolveContents Lnet/minecraft/item/WrittenBookItem;resolveContents(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)V
    • 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 f Lzw;f(Lzx;)Z
      intermediary method_8288 Lnet/minecraft/class_2054;method_8288(Lnet/minecraft/class_2056;)Z
      named hasEnchantmentGlint Lnet/minecraft/item/Item;hasEnchantmentGlint(Lnet/minecraft/item/ItemStack;)Z