Class WrittenBookItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.WrittenBookItem
All Implemented Interfaces:
Itemable

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

    • WrittenBookItem

      public WrittenBookItem(Item.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lata;<init>(Lata$a;)V
      intermediary <init> Lnet/minecraft/class_1069;<init>(Lnet/minecraft/class_1069$class_3555;)V
      named <init> Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
  • Method Details

    • isValid

      public static boolean isValid(@Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official b Laus;b(Lgy;)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 e Laus;e(Late;)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
    • method_3383

      public Text method_3383(ItemStack itemStack)
      Overrides:
      method_3383 in class Item
      Mappings:
      Namespace Name Mixin selector
      official i Lata;i(Late;)Lij;
      intermediary method_3383 Lnet/minecraft/class_1069;method_3383(Lnet/minecraft/class_1071;)Lnet/minecraft/class_1982;
      named method_3383 Lnet/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:
      appendTooltips in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lata;a(Late;Laxy;Ljava/util/List;Laum;)V
      intermediary method_14234 Lnet/minecraft/class_1069;method_14234(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Ljava/util/List;Lnet/minecraft/class_3191;)V
      named appendTooltips Lnet/minecraft/item/Item;appendTooltips(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/client/TooltipContext;)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 Lata;a(Laxy;Laog;Ladk;)Ladn;
      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 Laus;a(Late;Laog;)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 b Lata;b(Late;)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