Class ItemStack

java.lang.Object
net.minecraft.item.ItemStack

public final class ItemStack extends Object
Mappings:
Namespace Name
official adq
intermediary net/minecraft/class_1071
named net/minecraft/item/ItemStack
  • Field Details

    • MODIFIER_FORMAT

      public static final DecimalFormat MODIFIER_FORMAT
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a:Ljava/text/DecimalFormat;
      intermediary field_6949 Lnet/minecraft/class_1071;field_6949:Ljava/text/DecimalFormat;
      named MODIFIER_FORMAT Lnet/minecraft/item/ItemStack;MODIFIER_FORMAT:Ljava/text/DecimalFormat;
    • count

      public int count
      Mappings:
      Namespace Name Mixin selector
      official b Ladq;b:I
      intermediary field_4376 Lnet/minecraft/class_1071;field_4376:I
      named count Lnet/minecraft/item/ItemStack;count:I
    • field_4377

      public int field_4377
      Mappings:
      Namespace Name Mixin selector
      official c Ladq;c:I
      intermediary field_4377 Lnet/minecraft/class_1071;field_4377:I
      named field_4377 Lnet/minecraft/item/ItemStack;field_4377:I
    • item

      private Item item
      Mappings:
      Namespace Name Mixin selector
      official d Ladq;d:Lado;
      intermediary field_6974 Lnet/minecraft/class_1071;field_6974:Lnet/minecraft/class_1069;
      named item Lnet/minecraft/item/ItemStack;item:Lnet/minecraft/item/Item;
    • nbt

      private NbtCompound nbt
      Mappings:
      Namespace Name Mixin selector
      official e Ladq;e:Ldq;
      intermediary field_4379 Lnet/minecraft/class_1071;field_4379:Lnet/minecraft/class_322;
      named nbt Lnet/minecraft/item/ItemStack;nbt:Lnet/minecraft/nbt/NbtCompound;
    • damage

      private int damage
      Mappings:
      Namespace Name Mixin selector
      official f Ladq;f:I
      intermediary field_4380 Lnet/minecraft/class_1071;field_4380:I
      named damage Lnet/minecraft/item/ItemStack;damage:I
    • itemFrame

      private ItemFrameEntity itemFrame
      Mappings:
      Namespace Name Mixin selector
      official g Ladq;g:Lxs;
      intermediary field_5446 Lnet/minecraft/class_1071;field_5446:Lnet/minecraft/class_1397;
      named itemFrame Lnet/minecraft/item/ItemStack;itemFrame:Lnet/minecraft/entity/decoration/ItemFrameEntity;
    • lastDestroyedBlock

      private Block lastDestroyedBlock
      Mappings:
      Namespace Name Mixin selector
      official h Ladq;h:Lajt;
      intermediary field_12184 Lnet/minecraft/class_1071;field_12184:Lnet/minecraft/class_197;
      named lastDestroyedBlock Lnet/minecraft/item/ItemStack;lastDestroyedBlock:Lnet/minecraft/block/Block;
    • lastDestroyResult

      private boolean lastDestroyResult
      Mappings:
      Namespace Name Mixin selector
      official i Ladq;i:Z
      intermediary field_12185 Lnet/minecraft/class_1071;field_12185:Z
      named lastDestroyResult Lnet/minecraft/item/ItemStack;lastDestroyResult:Z
    • lastPlacedOn

      private Block lastPlacedOn
      Mappings:
      Namespace Name Mixin selector
      official j Ladq;j:Lajt;
      intermediary field_12186 Lnet/minecraft/class_1071;field_12186:Lnet/minecraft/class_197;
      named lastPlacedOn Lnet/minecraft/item/ItemStack;lastPlacedOn:Lnet/minecraft/block/Block;
    • lastPlaceOnResult

      private boolean lastPlaceOnResult
      Mappings:
      Namespace Name Mixin selector
      official k Ladq;k:Z
      intermediary field_12187 Lnet/minecraft/class_1071;field_12187:Z
      named lastPlaceOnResult Lnet/minecraft/item/ItemStack;lastPlaceOnResult:Z
  • Constructor Details

    • ItemStack

      public ItemStack(Block block)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladq;<init>(Lajt;)V
      intermediary <init> Lnet/minecraft/class_1071;<init>(Lnet/minecraft/class_197;)V
      named <init> Lnet/minecraft/item/ItemStack;<init>(Lnet/minecraft/block/Block;)V
    • ItemStack

      public ItemStack(Block block, int count)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladq;<init>(Lajt;I)V
      intermediary <init> Lnet/minecraft/class_1071;<init>(Lnet/minecraft/class_197;I)V
      named <init> Lnet/minecraft/item/ItemStack;<init>(Lnet/minecraft/block/Block;I)V
    • ItemStack

      public ItemStack(Block block, int count, int damage)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladq;<init>(Lajt;II)V
      intermediary <init> Lnet/minecraft/class_1071;<init>(Lnet/minecraft/class_197;II)V
      named <init> Lnet/minecraft/item/ItemStack;<init>(Lnet/minecraft/block/Block;II)V
    • ItemStack

      public ItemStack(Item item)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladq;<init>(Lado;)V
      intermediary <init> Lnet/minecraft/class_1071;<init>(Lnet/minecraft/class_1069;)V
      named <init> Lnet/minecraft/item/ItemStack;<init>(Lnet/minecraft/item/Item;)V
    • ItemStack

      public ItemStack(Item item, int count)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladq;<init>(Lado;I)V
      intermediary <init> Lnet/minecraft/class_1071;<init>(Lnet/minecraft/class_1069;I)V
      named <init> Lnet/minecraft/item/ItemStack;<init>(Lnet/minecraft/item/Item;I)V
    • ItemStack

      public ItemStack(Item item, int count, int damage)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladq;<init>(Lado;II)V
      intermediary <init> Lnet/minecraft/class_1071;<init>(Lnet/minecraft/class_1069;II)V
      named <init> Lnet/minecraft/item/ItemStack;<init>(Lnet/minecraft/item/Item;II)V
    • ItemStack

      private ItemStack()
  • Method Details

    • fromNbt

      public static ItemStack fromNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Ldq;)Ladq;
      intermediary method_3408 Lnet/minecraft/class_1071;method_3408(Lnet/minecraft/class_322;)Lnet/minecraft/class_1071;
      named fromNbt Lnet/minecraft/item/ItemStack;fromNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/item/ItemStack;
    • split

      public ItemStack split(int amount)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(I)Ladq;
      intermediary method_3405 Lnet/minecraft/class_1071;method_3405(I)Lnet/minecraft/class_1071;
      named split Lnet/minecraft/item/ItemStack;split(I)Lnet/minecraft/item/ItemStack;
    • getItem

      public Item getItem()
      Mappings:
      Namespace Name Mixin selector
      official b Ladq;b()Lado;
      intermediary method_3421 Lnet/minecraft/class_1071;method_3421()Lnet/minecraft/class_1069;
      named getItem Lnet/minecraft/item/ItemStack;getItem()Lnet/minecraft/item/Item;
    • use

      public ActionResult use(PlayerEntity player, World world, BlockPos pos, Hand hand, Direction direction, float x, float y, float z)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Lzj;Laht;Lcl;Lqm;Lcs;FFF)Lqo;
      intermediary method_11394 Lnet/minecraft/class_1071;method_11394(Lnet/minecraft/class_988;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2961;Lnet/minecraft/class_1354;FFF)Lnet/minecraft/class_2962;
      named use Lnet/minecraft/item/ItemStack;use(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/Direction;FFF)Lnet/minecraft/util/ActionResult;
    • method_11391

      public float method_11391(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Lard;)F
      intermediary method_11391 Lnet/minecraft/class_1071;method_11391(Lnet/minecraft/class_2232;)F
      named method_11391 Lnet/minecraft/item/ItemStack;method_11391(Lnet/minecraft/block/BlockState;)F
    • method_11390

      public TypedActionResult<ItemStack> method_11390(World world, PlayerEntity player, Hand hand)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Laht;Lzj;Lqm;)Lqp;
      intermediary method_11390 Lnet/minecraft/class_1071;method_11390(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;)Lnet/minecraft/class_2963;
      named method_11390 Lnet/minecraft/item/ItemStack;method_11390(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;
    • method_11388

      @Nullable public ItemStack method_11388(World world, LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Laht;Lsa;)Ladq;
      intermediary method_11388 Lnet/minecraft/class_1071;method_11388(Lnet/minecraft/class_1150;Lnet/minecraft/class_1699;)Lnet/minecraft/class_1071;
      named method_11388 Lnet/minecraft/item/ItemStack;method_11388(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/item/ItemStack;
    • toNbt

      public NbtCompound toNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official b Ladq;b(Ldq;)Ldq;
      intermediary method_3424 Lnet/minecraft/class_1071;method_3424(Lnet/minecraft/class_322;)Lnet/minecraft/class_322;
      named toNbt Lnet/minecraft/item/ItemStack;toNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
    • writeNbt

      public void writeNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official c Ladq;c(Ldq;)V
      intermediary method_3430 Lnet/minecraft/class_1071;method_3430(Lnet/minecraft/class_322;)V
      named writeNbt Lnet/minecraft/item/ItemStack;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • getMaxCount

      public int getMaxCount()
      Mappings:
      Namespace Name Mixin selector
      official c Ladq;c()I
      intermediary method_3432 Lnet/minecraft/class_1071;method_3432()I
      named getMaxCount Lnet/minecraft/item/ItemStack;getMaxCount()I
    • isDamaged

      public boolean isDamaged()
      Mappings:
      Namespace Name Mixin selector
      official d Ladq;d()Z
      intermediary method_3435 Lnet/minecraft/class_1071;method_3435()Z
      named isDamaged Lnet/minecraft/item/ItemStack;isDamaged()Z
    • isDamageable

      public boolean isDamageable()
      Mappings:
      Namespace Name Mixin selector
      official e Ladq;e()Z
      intermediary method_3436 Lnet/minecraft/class_1071;method_3436()Z
      named isDamageable Lnet/minecraft/item/ItemStack;isDamageable()Z
    • isUnbreakable

      public boolean isUnbreakable()
      Mappings:
      Namespace Name Mixin selector
      official f Ladq;f()Z
      intermediary method_3437 Lnet/minecraft/class_1071;method_3437()Z
      named isUnbreakable Lnet/minecraft/item/ItemStack;isUnbreakable()Z
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      official g Ladq;g()Z
      intermediary method_3438 Lnet/minecraft/class_1071;method_3438()Z
      named isEmpty Lnet/minecraft/item/ItemStack;isEmpty()Z
    • getDamage

      public int getDamage()
      Mappings:
      Namespace Name Mixin selector
      official h Ladq;h()I
      intermediary method_3439 Lnet/minecraft/class_1071;method_3439()I
      named getDamage Lnet/minecraft/item/ItemStack;getDamage()I
    • getMeta

      public int getMeta()
      Mappings:
      Namespace Name Mixin selector
      official i Ladq;i()I
      intermediary method_3440 Lnet/minecraft/class_1071;method_3440()I
      named getMeta Lnet/minecraft/item/ItemStack;getMeta()I
    • setDamage

      public void setDamage(int damage)
      Mappings:
      Namespace Name Mixin selector
      official b Ladq;b(I)V
      intermediary method_3422 Lnet/minecraft/class_1071;method_3422(I)V
      named setDamage Lnet/minecraft/item/ItemStack;setDamage(I)V
    • getMaxDamage

      public int getMaxDamage()
      Mappings:
      Namespace Name Mixin selector
      official j Ladq;j()I
      intermediary method_3441 Lnet/minecraft/class_1071;method_3441()I
      named getMaxDamage Lnet/minecraft/item/ItemStack;getMaxDamage()I
    • damage

      public boolean damage(int amount, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(ILjava/util/Random;)Z
      intermediary method_5464 Lnet/minecraft/class_1071;method_5464(ILjava/util/Random;)Z
      named damage Lnet/minecraft/item/ItemStack;damage(ILjava/util/Random;)Z
    • damage

      public void damage(int amount, LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(ILsa;)V
      intermediary method_6328 Lnet/minecraft/class_1071;method_6328(ILnet/minecraft/class_1699;)V
      named damage Lnet/minecraft/item/ItemStack;damage(ILnet/minecraft/entity/LivingEntity;)V
    • onEntityHit

      public void onEntityHit(LivingEntity entity, PlayerEntity attacker)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Lsa;Lzj;)V
      intermediary method_3412 Lnet/minecraft/class_1071;method_3412(Lnet/minecraft/class_1699;Lnet/minecraft/class_988;)V
      named onEntityHit Lnet/minecraft/item/ItemStack;onEntityHit(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/player/PlayerEntity;)V
    • method_11306

      public void method_11306(World world, BlockState blockState, BlockPos blockPos, PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Laht;Lard;Lcl;Lzj;)V
      intermediary method_11306 Lnet/minecraft/class_1071;method_11306(Lnet/minecraft/class_1150;Lnet/minecraft/class_2232;Lnet/minecraft/class_2552;Lnet/minecraft/class_988;)V
      named method_11306 Lnet/minecraft/item/ItemStack;method_11306(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;)V
    • method_11396

      public boolean method_11396(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official b Ladq;b(Lard;)Z
      intermediary method_11396 Lnet/minecraft/class_1071;method_11396(Lnet/minecraft/class_2232;)Z
      named method_11396 Lnet/minecraft/item/ItemStack;method_11396(Lnet/minecraft/block/BlockState;)Z
    • method_6329

      public boolean method_6329(PlayerEntity player, LivingEntity entity, Hand hand)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Lzj;Lsa;Lqm;)Z
      intermediary method_6329 Lnet/minecraft/class_1071;method_6329(Lnet/minecraft/class_988;Lnet/minecraft/class_1699;Lnet/minecraft/class_2961;)Z
      named method_6329 Lnet/minecraft/item/ItemStack;method_6329(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/Hand;)Z
    • copy

      public ItemStack copy()
      Mappings:
      Namespace Name Mixin selector
      official k Ladq;k()Ladq;
      intermediary method_3442 Lnet/minecraft/class_1071;method_3442()Lnet/minecraft/class_1071;
      named copy Lnet/minecraft/item/ItemStack;copy()Lnet/minecraft/item/ItemStack;
    • equalsIgnoreDamage

      public static boolean equalsIgnoreDamage(@Nullable ItemStack left, @Nullable ItemStack right)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Ladq;Ladq;)Z
      intermediary method_3415 Lnet/minecraft/class_1071;method_3415(Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;)Z
      named equalsIgnoreDamage Lnet/minecraft/item/ItemStack;equalsIgnoreDamage(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
    • equalsAll

      public static boolean equalsAll(@Nullable ItemStack left, @Nullable ItemStack right)
      Mappings:
      Namespace Name Mixin selector
      official b Ladq;b(Ladq;Ladq;)Z
      intermediary method_3426 Lnet/minecraft/class_1071;method_3426(Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;)Z
      named equalsAll Lnet/minecraft/item/ItemStack;equalsAll(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
    • equalsAll

      private boolean equalsAll(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official e Ladq;e(Ladq;)Z
      intermediary method_3434 Lnet/minecraft/class_1071;method_3434(Lnet/minecraft/class_1071;)Z
      named equalsAll Lnet/minecraft/item/ItemStack;equalsAll(Lnet/minecraft/item/ItemStack;)Z
    • equalsIgnoreNbt

      public static boolean equalsIgnoreNbt(@Nullable ItemStack left, @Nullable ItemStack right)
      Mappings:
      Namespace Name Mixin selector
      official c Ladq;c(Ladq;Ladq;)Z
      intermediary method_11311 Lnet/minecraft/class_1071;method_11311(Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;)Z
      named equalsIgnoreNbt Lnet/minecraft/item/ItemStack;equalsIgnoreNbt(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
    • equals

      public static boolean equals(@Nullable ItemStack stack0, @Nullable ItemStack stack1)
      Mappings:
      Namespace Name Mixin selector
      official d Ladq;d(Ladq;Ladq;)Z
      intermediary method_11397 Lnet/minecraft/class_1071;method_11397(Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;)Z
      named equals Lnet/minecraft/item/ItemStack;equals(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
    • equalsIgnoreNbt

      public boolean equalsIgnoreNbt(@Nullable ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Ladq;)Z
      intermediary method_3414 Lnet/minecraft/class_1071;method_3414(Lnet/minecraft/class_1071;)Z
      named equalsIgnoreNbt Lnet/minecraft/item/ItemStack;equalsIgnoreNbt(Lnet/minecraft/item/ItemStack;)Z
    • equals

      public boolean equals(@Nullable ItemStack other)
      Mappings:
      Namespace Name Mixin selector
      official b Ladq;b(Ladq;)Z
      intermediary method_11395 Lnet/minecraft/class_1071;method_11395(Lnet/minecraft/class_1071;)Z
      named equals Lnet/minecraft/item/ItemStack;equals(Lnet/minecraft/item/ItemStack;)Z
    • getTranslationKey

      public String getTranslationKey()
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a()Ljava/lang/String;
      intermediary method_3404 Lnet/minecraft/class_1071;method_3404()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/item/ItemStack;getTranslationKey()Ljava/lang/String;
    • copyOf

      public static ItemStack copyOf(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official c Ladq;c(Ladq;)Ladq;
      intermediary method_3425 Lnet/minecraft/class_1071;method_3425(Lnet/minecraft/class_1071;)Lnet/minecraft/class_1071;
      named copyOf Lnet/minecraft/item/ItemStack;copyOf(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Ladq;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_1071;toString()Ljava/lang/String;
      named toString Lnet/minecraft/item/ItemStack;toString()Ljava/lang/String;
    • inventoryTick

      public void inventoryTick(World world, Entity entity, int slot, boolean selected)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Laht;Lrr;IZ)V
      intermediary method_3418 Lnet/minecraft/class_1071;method_3418(Lnet/minecraft/class_1150;Lnet/minecraft/class_864;IZ)V
      named inventoryTick Lnet/minecraft/item/ItemStack;inventoryTick(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;IZ)V
    • onCraft

      public void onCraft(World world, PlayerEntity player, int amount)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Laht;Lzj;I)V
      intermediary method_3420 Lnet/minecraft/class_1071;method_3420(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;I)V
      named onCraft Lnet/minecraft/item/ItemStack;onCraft(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;I)V
    • getMaxUseTime

      public int getMaxUseTime()
      Mappings:
      Namespace Name Mixin selector
      official l Ladq;l()I
      intermediary method_3443 Lnet/minecraft/class_1071;method_3443()I
      named getMaxUseTime Lnet/minecraft/item/ItemStack;getMaxUseTime()I
    • getUseAction

      public UseAction getUseAction()
      Mappings:
      Namespace Name Mixin selector
      official m Ladq;m()Lafa;
      intermediary method_3444 Lnet/minecraft/class_1071;method_3444()Lnet/minecraft/class_1099;
      named getUseAction Lnet/minecraft/item/ItemStack;getUseAction()Lnet/minecraft/util/UseAction;
    • method_11389

      public void method_11389(World world, LivingEntity livingEntity, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Laht;Lsa;I)V
      intermediary method_11389 Lnet/minecraft/class_1071;method_11389(Lnet/minecraft/class_1150;Lnet/minecraft/class_1699;I)V
      named method_11389 Lnet/minecraft/item/ItemStack;method_11389(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;I)V
    • hasNbt

      public boolean hasNbt()
      Mappings:
      Namespace Name Mixin selector
      official n Ladq;n()Z
      intermediary method_3445 Lnet/minecraft/class_1071;method_3445()Z
      named hasNbt Lnet/minecraft/item/ItemStack;hasNbt()Z
    • getNbt

      @Nullable public NbtCompound getNbt()
      Mappings:
      Namespace Name Mixin selector
      official o Ladq;o()Ldq;
      intermediary method_3446 Lnet/minecraft/class_1071;method_3446()Lnet/minecraft/class_322;
      named getNbt Lnet/minecraft/item/ItemStack;getNbt()Lnet/minecraft/nbt/NbtCompound;
    • getSubNbt

      public NbtCompound getSubNbt(String name, boolean createIfNull)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Ljava/lang/String;Z)Ldq;
      intermediary method_11307 Lnet/minecraft/class_1071;method_11307(Ljava/lang/String;Z)Lnet/minecraft/class_322;
      named getSubNbt Lnet/minecraft/item/ItemStack;getSubNbt(Ljava/lang/String;Z)Lnet/minecraft/nbt/NbtCompound;
    • getEnchantments

      public NbtList getEnchantments()
      Mappings:
      Namespace Name Mixin selector
      official p Ladq;p()Ldw;
      intermediary method_3447 Lnet/minecraft/class_1071;method_3447()Lnet/minecraft/class_474;
      named getEnchantments Lnet/minecraft/item/ItemStack;getEnchantments()Lnet/minecraft/nbt/NbtList;
    • setNbt

      public void setNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official d Ladq;d(Ldq;)V
      intermediary method_3433 Lnet/minecraft/class_1071;method_3433(Lnet/minecraft/class_322;)V
      named setNbt Lnet/minecraft/item/ItemStack;setNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official q Ladq;q()Ljava/lang/String;
      intermediary method_4623 Lnet/minecraft/class_1071;method_4623()Ljava/lang/String;
      named getName Lnet/minecraft/item/ItemStack;getName()Ljava/lang/String;
    • setCustomName

      public ItemStack setCustomName(String name)
      Mappings:
      Namespace Name Mixin selector
      official c Ladq;c(Ljava/lang/String;)Ladq;
      intermediary method_6373 Lnet/minecraft/class_1071;method_6373(Ljava/lang/String;)Lnet/minecraft/class_1071;
      named setCustomName Lnet/minecraft/item/ItemStack;setCustomName(Ljava/lang/String;)Lnet/minecraft/item/ItemStack;
    • removeCustomName

      public void removeCustomName()
      Mappings:
      Namespace Name Mixin selector
      official r Ladq;r()V
      intermediary method_6330 Lnet/minecraft/class_1071;method_6330()V
      named removeCustomName Lnet/minecraft/item/ItemStack;removeCustomName()V
    • hasCustomName

      public boolean hasCustomName()
      Mappings:
      Namespace Name Mixin selector
      official s Ladq;s()Z
      intermediary method_4624 Lnet/minecraft/class_1071;method_4624()Z
      named hasCustomName Lnet/minecraft/item/ItemStack;hasCustomName()Z
    • getTooltip

      @Environment(CLIENT) public List<String> getTooltip(PlayerEntity player, boolean advanced)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Lzj;Z)Ljava/util/List;
      intermediary method_4620 Lnet/minecraft/class_1071;method_4620(Lnet/minecraft/class_988;Z)Ljava/util/List;
      named getTooltip Lnet/minecraft/item/ItemStack;getTooltip(Lnet/minecraft/entity/player/PlayerEntity;Z)Ljava/util/List;
    • hasEnchantmentGlint

      @Environment(CLIENT) public boolean hasEnchantmentGlint()
      Mappings:
      Namespace Name Mixin selector
      official t Ladq;t()Z
      intermediary method_3449 Lnet/minecraft/class_1071;method_3449()Z
      named hasEnchantmentGlint Lnet/minecraft/item/ItemStack;hasEnchantmentGlint()Z
    • getRarity

      public Rarity getRarity()
      Mappings:
      Namespace Name Mixin selector
      official u Ladq;u()Laee;
      intermediary method_3450 Lnet/minecraft/class_1071;method_3450()Lnet/minecraft/class_1081;
      named getRarity Lnet/minecraft/item/ItemStack;getRarity()Lnet/minecraft/util/Rarity;
    • isEnchantable

      public boolean isEnchantable()
      Mappings:
      Namespace Name Mixin selector
      official v Ladq;v()Z
      intermediary method_3451 Lnet/minecraft/class_1071;method_3451()Z
      named isEnchantable Lnet/minecraft/item/ItemStack;isEnchantable()Z
    • addEnchantment

      public void addEnchantment(Enchantment enchantment, int level)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Lagm;I)V
      intermediary method_3416 Lnet/minecraft/class_1071;method_3416(Lnet/minecraft/class_1127;I)V
      named addEnchantment Lnet/minecraft/item/ItemStack;addEnchantment(Lnet/minecraft/enchantment/Enchantment;I)V
    • hasEnchantments

      public boolean hasEnchantments()
      Mappings:
      Namespace Name Mixin selector
      official w Ladq;w()Z
      intermediary method_3452 Lnet/minecraft/class_1071;method_3452()Z
      named hasEnchantments Lnet/minecraft/item/ItemStack;hasEnchantments()Z
    • putSubNbt

      public void putSubNbt(String key, NbtElement nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Ljava/lang/String;Led;)V
      intermediary method_3409 Lnet/minecraft/class_1071;method_3409(Ljava/lang/String;Lnet/minecraft/class_605;)V
      named putSubNbt Lnet/minecraft/item/ItemStack;putSubNbt(Ljava/lang/String;Lnet/minecraft/nbt/NbtElement;)V
    • hasSubTypes

      public boolean hasSubTypes()
      Mappings:
      Namespace Name Mixin selector
      official x Ladq;x()Z
      intermediary method_4625 Lnet/minecraft/class_1071;method_4625()Z
      named hasSubTypes Lnet/minecraft/item/ItemStack;hasSubTypes()Z
    • isInItemFrame

      public boolean isInItemFrame()
      Mappings:
      Namespace Name Mixin selector
      official y Ladq;y()Z
      intermediary method_4626 Lnet/minecraft/class_1071;method_4626()Z
      named isInItemFrame Lnet/minecraft/item/ItemStack;isInItemFrame()Z
    • setInItemFrame

      public void setInItemFrame(ItemFrameEntity itemFrame)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Lxs;)V
      intermediary method_4619 Lnet/minecraft/class_1071;method_4619(Lnet/minecraft/class_1397;)V
      named setInItemFrame Lnet/minecraft/item/ItemStack;setInItemFrame(Lnet/minecraft/entity/decoration/ItemFrameEntity;)V
    • getItemFrame

      @Nullable public ItemFrameEntity getItemFrame()
      Mappings:
      Namespace Name Mixin selector
      official z Ladq;z()Lxs;
      intermediary method_4627 Lnet/minecraft/class_1071;method_4627()Lnet/minecraft/class_1397;
      named getItemFrame Lnet/minecraft/item/ItemStack;getItemFrame()Lnet/minecraft/entity/decoration/ItemFrameEntity;
    • getRepairCost

      public int getRepairCost()
      Mappings:
      Namespace Name Mixin selector
      official A Ladq;A()I
      intermediary method_4618 Lnet/minecraft/class_1071;method_4618()I
      named getRepairCost Lnet/minecraft/item/ItemStack;getRepairCost()I
    • setRepairCost

      public void setRepairCost(int cost)
      Mappings:
      Namespace Name Mixin selector
      official c Ladq;c(I)V
      intermediary method_4621 Lnet/minecraft/class_1071;method_4621(I)V
      named setRepairCost Lnet/minecraft/item/ItemStack;setRepairCost(I)V
    • method_11393

      public Multimap<String,AttributeModifier> method_11393(EquipmentSlot slot)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Lrw;)Lcom/google/common/collect/Multimap;
      intermediary method_11393 Lnet/minecraft/class_1071;method_11393(Lnet/minecraft/class_2968;)Lcom/google/common/collect/Multimap;
      named method_11393 Lnet/minecraft/item/ItemStack;method_11393(Lnet/minecraft/entity/EquipmentSlot;)Lcom/google/common/collect/Multimap;
    • method_11392

      public void method_11392(String attributeName, AttributeModifier modifier, EquipmentSlot slot)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Ljava/lang/String;Lsn;Lrw;)V
      intermediary method_11392 Lnet/minecraft/class_1071;method_11392(Ljava/lang/String;Lnet/minecraft/class_1704;Lnet/minecraft/class_2968;)V
      named method_11392 Lnet/minecraft/item/ItemStack;method_11392(Ljava/lang/String;Lnet/minecraft/entity/attribute/AttributeModifier;Lnet/minecraft/entity/EquipmentSlot;)V
    • setItem

      @Deprecated public void setItem(Item item)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Lado;)V
      intermediary method_6372 Lnet/minecraft/class_1071;method_6372(Lnet/minecraft/class_1069;)V
      named setItem Lnet/minecraft/item/ItemStack;setItem(Lnet/minecraft/item/Item;)V
    • toHoverableText

      public Text toHoverableText()
      Mappings:
      Namespace Name Mixin selector
      official B Ladq;B()Lew;
      intermediary method_6371 Lnet/minecraft/class_1071;method_6371()Lnet/minecraft/class_1982;
      named toHoverableText Lnet/minecraft/item/ItemStack;toHoverableText()Lnet/minecraft/text/Text;
    • canDestroy

      public boolean canDestroy(Block block)
      Mappings:
      Namespace Name Mixin selector
      official a Ladq;a(Lajt;)Z
      intermediary method_11309 Lnet/minecraft/class_1071;method_11309(Lnet/minecraft/class_197;)Z
      named canDestroy Lnet/minecraft/item/ItemStack;canDestroy(Lnet/minecraft/block/Block;)Z
    • canPlaceOn

      public boolean canPlaceOn(Block block)
      Mappings:
      Namespace Name Mixin selector
      official b Ladq;b(Lajt;)Z
      intermediary method_11312 Lnet/minecraft/class_1071;method_11312(Lnet/minecraft/class_197;)Z
      named canPlaceOn Lnet/minecraft/item/ItemStack;canPlaceOn(Lnet/minecraft/block/Block;)Z