Class WrittenBookItem

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

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

    • WrittenBookItem

      public WrittenBookItem()
      Mappings:
      Namespace Name Mixin selector
      official <init> Lafh;<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 b Lagx;b(Ldu;)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
    • getGeneration

      public static int getGeneration(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official h Lagx;h(Lafj;)I
      intermediary method_8440 Lnet/minecraft/class_1104;method_8440(Lnet/minecraft/class_1071;)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 b Lafh;b(Lafj;)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<String> lines, boolean advanced)
      Overrides:
      appendTooltip in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lafj;Laay;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
    • method_13649

      public TypedActionResult<ItemStack> method_13649(World world, PlayerEntity player, Hand hand)
      Overrides:
      method_13649 in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lajs;Laay;Lri;)Lrl;
      intermediary method_13649 Lnet/minecraft/class_1069;method_13649(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;)Lnet/minecraft/class_2963;
      named method_13649 Lnet/minecraft/item/Item;method_13649(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;
    • resolveContents

      private void resolveContents(ItemStack stack, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lagx;a(Lafj;Laay;)V
      intermediary method_8439 Lnet/minecraft/class_1104;method_8439(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;)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_ Lafh;f_(Lafj;)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