Class ItemStack

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

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

    • EMPTY

      public static final ItemStack EMPTY
      Mappings:
      Namespace Name Mixin selector
      official a Lafj;a:Lafj;
      intermediary field_15108 Lnet/minecraft/class_1071;field_15108:Lnet/minecraft/class_1071;
      named EMPTY Lnet/minecraft/item/ItemStack;EMPTY:Lnet/minecraft/item/ItemStack;
    • MODIFIER_FORMAT

      public static final DecimalFormat MODIFIER_FORMAT
      Mappings:
      Namespace Name Mixin selector
      official b Lafj;b: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

      private int count
      Mappings:
      Namespace Name Mixin selector
      official c Lafj;c:I
      intermediary field_4376 Lnet/minecraft/class_1071;field_4376:I
      named count Lnet/minecraft/item/ItemStack;count:I
    • field_4377

      private int field_4377
      Mappings:
      Namespace Name Mixin selector
      official d Lafj;d:I
      intermediary field_4377 Lnet/minecraft/class_1071;field_4377:I
      named field_4377 Lnet/minecraft/item/ItemStack;field_4377:I
    • item

      private final Item item
      Mappings:
      Namespace Name Mixin selector
      official e Lafj;e:Lafh;
      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 f Lafj;f:Ldu;
      intermediary field_4379 Lnet/minecraft/class_1071;field_4379:Lnet/minecraft/class_322;
      named nbt Lnet/minecraft/item/ItemStack;nbt:Lnet/minecraft/nbt/NbtCompound;
    • empty

      private boolean empty
      Mappings:
      Namespace Name Mixin selector
      official g Lafj;g:Z
      intermediary field_15109 Lnet/minecraft/class_1071;field_15109:Z
      named empty Lnet/minecraft/item/ItemStack;empty:Z
    • damage

      private int damage
      Mappings:
      Namespace Name Mixin selector
      official h Lafj;h: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 i Lafj;i:Lyz;
      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 j Lafj;j:Lalu;
      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 k Lafj;k: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 l Lafj;l:Lalu;
      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 m Lafj;m: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> Lafj;<init>(Lalu;)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> Lafj;<init>(Lalu;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> Lafj;<init>(Lalu;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> Lafj;<init>(Lafh;)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> Lafj;<init>(Lafh;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> Lafj;<init>(Lafh;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

      public ItemStack(NbtCompound tag)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lafj;<init>(Ldu;)V
      intermediary <init> Lnet/minecraft/class_1071;<init>(Lnet/minecraft/class_322;)V
      named <init> Lnet/minecraft/item/ItemStack;<init>(Lnet/minecraft/nbt/NbtCompound;)V
  • Method Details

    • updateStackStatus

      private void updateStackStatus()
      Mappings:
      Namespace Name Mixin selector
      official F Lafj;F()V
      intermediary method_13653 Lnet/minecraft/class_1071;method_13653()V
      named updateStackStatus Lnet/minecraft/item/ItemStack;updateStackStatus()V
    • isEmpty_

      public boolean isEmpty_()
      Mappings:
      Namespace Name Mixin selector
      official b Lafj;b()Z
      intermediary method_13654 Lnet/minecraft/class_1071;method_13654()Z
      named isEmpty_ Lnet/minecraft/item/ItemStack;isEmpty_()Z
    • method_13311

      public static void method_13311(class_2934 class_2934)
      Mappings:
      Namespace Name Mixin selector
      official a Lafj;a(Lph;)V
      intermediary method_13311 Lnet/minecraft/class_1071;method_13311(Lnet/minecraft/class_2934;)V
      named method_13311 Lnet/minecraft/item/ItemStack;method_13311(Lnet/minecraft/class_2934;)V
    • split

      public ItemStack split(int amount)
      Mappings:
      Namespace Name Mixin selector
      official a Lafj;a(I)Lafj;
      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 c Lafj;c()Lafh;
      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 Lafj;a(Laay;Lajs;Lco;Lri;Lcv;FFF)Lrk;
      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 Lafj;a(Latl;)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 Lafj;a(Lajs;Laay;Lri;)Lrl;
      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

      public ItemStack method_11388(World world, LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lafj;a(Lajs;Lsw;)Lafj;
      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 a Lafj;a(Ldu;)Ldu;
      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;
    • getMaxCount

      public int getMaxCount()
      Mappings:
      Namespace Name Mixin selector
      official d Lafj;d()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 e Lafj;e()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 f Lafj;f()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 g Lafj;g()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 h Lafj;h()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 i Lafj;i()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 j Lafj;j()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 Lafj;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 k Lafj;k()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 Lafj;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 Lafj;a(ILsw;)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 Lafj;a(Lsw;Laay;)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 Lafj;a(Lajs;Latl;Lco;Laay;)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 Lafj;b(Latl;)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 Lafj;a(Laay;Lsw;Lri;)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 l Lafj;l()Lafj;
      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(ItemStack left, ItemStack right)
      Mappings:
      Namespace Name Mixin selector
      official a Lafj;a(Lafj;Lafj;)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(ItemStack left, ItemStack right)
      Mappings:
      Namespace Name Mixin selector
      official b Lafj;b(Lafj;Lafj;)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 d Lafj;d(Lafj;)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(ItemStack left, ItemStack right)
      Mappings:
      Namespace Name Mixin selector
      official c Lafj;c(Lafj;Lafj;)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(ItemStack stack0, ItemStack stack1)
      Mappings:
      Namespace Name Mixin selector
      official d Lafj;d(Lafj;Lafj;)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(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lafj;a(Lafj;)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(ItemStack other)
      Mappings:
      Namespace Name Mixin selector
      official b Lafj;b(Lafj;)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 Lafj;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;
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lafj;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 Lafj;a(Lajs;Lsn;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 Lafj;a(Lajs;Laay;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 m Lafj;m()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 n Lafj;n()Lagu;
      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 Lafj;a(Lajs;Lsw;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 o Lafj;o()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 p Lafj;p()Ldu;
      intermediary method_3446 Lnet/minecraft/class_1071;method_3446()Lnet/minecraft/class_322;
      named getNbt Lnet/minecraft/item/ItemStack;getNbt()Lnet/minecraft/nbt/NbtCompound;
    • method_13655

      public NbtCompound method_13655(String string)
      Mappings:
      Namespace Name Mixin selector
      official c Lafj;c(Ljava/lang/String;)Ldu;
      intermediary method_13655 Lnet/minecraft/class_1071;method_13655(Ljava/lang/String;)Lnet/minecraft/class_322;
      named method_13655 Lnet/minecraft/item/ItemStack;method_13655(Ljava/lang/String;)Lnet/minecraft/nbt/NbtCompound;
    • method_13657

      @Nullable public NbtCompound method_13657(String string)
      Mappings:
      Namespace Name Mixin selector
      official d Lafj;d(Ljava/lang/String;)Ldu;
      intermediary method_13657 Lnet/minecraft/class_1071;method_13657(Ljava/lang/String;)Lnet/minecraft/class_322;
      named method_13657 Lnet/minecraft/item/ItemStack;method_13657(Ljava/lang/String;)Lnet/minecraft/nbt/NbtCompound;
    • method_13659

      public void method_13659(String string)
      Mappings:
      Namespace Name Mixin selector
      official e Lafj;e(Ljava/lang/String;)V
      intermediary method_13659 Lnet/minecraft/class_1071;method_13659(Ljava/lang/String;)V
      named method_13659 Lnet/minecraft/item/ItemStack;method_13659(Ljava/lang/String;)V
    • getEnchantments

      @Nullable public NbtList getEnchantments()
      Mappings:
      Namespace Name Mixin selector
      official q Lafj;q()Lea;
      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(@Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official b Lafj;b(Ldu;)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 r Lafj;r()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;
    • method_13661

      public ItemStack method_13661(String string)
      Mappings:
      Namespace Name Mixin selector
      official f Lafj;f(Ljava/lang/String;)Lafj;
      intermediary method_13661 Lnet/minecraft/class_1071;method_13661(Ljava/lang/String;)Lnet/minecraft/class_1071;
      named method_13661 Lnet/minecraft/item/ItemStack;method_13661(Ljava/lang/String;)Lnet/minecraft/item/ItemStack;
    • setCustomName

      public ItemStack setCustomName(String name)
      Mappings:
      Namespace Name Mixin selector
      official g Lafj;g(Ljava/lang/String;)Lafj;
      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 s Lafj;s()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 t Lafj;t()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 Lafj;a(Laay;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 u Lafj;u()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 v Lafj;v()Lafx;
      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 w Lafj;w()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 Lafj;a(Laii;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 x Lafj;x()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 Lafj;a(Ljava/lang/String;Lei;)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 y Lafj;y()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 z Lafj;z()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 Lafj;a(Lyz;)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 A Lafj;A()Lyz;
      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 B Lafj;B()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 Lafj;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 Lafj;a(Lss;)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, @Nullable EquipmentSlot slot)
      Mappings:
      Namespace Name Mixin selector
      official a Lafj;a(Ljava/lang/String;Ltl;Lss;)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
    • toHoverableText

      public Text toHoverableText()
      Mappings:
      Namespace Name Mixin selector
      official C Lafj;C()Lfb;
      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 Lafj;a(Lalu;)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 Lafj;b(Lalu;)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
    • method_13651

      @Environment(CLIENT) public int method_13651()
      Mappings:
      Namespace Name Mixin selector
      official D Lafj;D()I
      intermediary method_13651 Lnet/minecraft/class_1071;method_13651()I
      named method_13651 Lnet/minecraft/item/ItemStack;method_13651()I
    • method_13656

      public void method_13656(int int2)
      Mappings:
      Namespace Name Mixin selector
      official d Lafj;d(I)V
      intermediary method_13656 Lnet/minecraft/class_1071;method_13656(I)V
      named method_13656 Lnet/minecraft/item/ItemStack;method_13656(I)V
    • getCount

      public int getCount()
      Mappings:
      Namespace Name Mixin selector
      official E Lafj;E()I
      intermediary method_13652 Lnet/minecraft/class_1071;method_13652()I
      named getCount Lnet/minecraft/item/ItemStack;getCount()I
    • setCount

      public void setCount(int count)
      Mappings:
      Namespace Name Mixin selector
      official e Lafj;e(I)V
      intermediary method_13658 Lnet/minecraft/class_1071;method_13658(I)V
      named setCount Lnet/minecraft/item/ItemStack;setCount(I)V
    • increment

      public void increment(int amount)
      Mappings:
      Namespace Name Mixin selector
      official f Lafj;f(I)V
      intermediary method_13660 Lnet/minecraft/class_1071;method_13660(I)V
      named increment Lnet/minecraft/item/ItemStack;increment(I)V
    • decrement

      public void decrement(int amount)
      Mappings:
      Namespace Name Mixin selector
      official g Lafj;g(I)V
      intermediary method_13662 Lnet/minecraft/class_1071;method_13662(I)V
      named decrement Lnet/minecraft/item/ItemStack;decrement(I)V