Class ItemStack

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

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

    • MODIFIER_FORMAT

      public static final DecimalFormat MODIFIER_FORMAT
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a:Ljava/text/DecimalFormat;
      intermediary field_8652 Lnet/minecraft/class_2056;field_8652: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 Lzx;b:I
      intermediary field_8653 Lnet/minecraft/class_2056;field_8653:I
      named count Lnet/minecraft/item/ItemStack;count:I
    • field_8654

      public int field_8654
      Mappings:
      Namespace Name Mixin selector
      official c Lzx;c:I
      intermediary field_8654 Lnet/minecraft/class_2056;field_8654:I
      named field_8654 Lnet/minecraft/item/ItemStack;field_8654:I
    • item

      private Item item
      Mappings:
      Namespace Name Mixin selector
      official d Lzx;d:Lzw;
      intermediary field_8655 Lnet/minecraft/class_2056;field_8655:Lnet/minecraft/class_2054;
      named item Lnet/minecraft/item/ItemStack;item:Lnet/minecraft/item/Item;
    • tag

      private CompoundTag tag
      Mappings:
      Namespace Name Mixin selector
      official e Lzx;e:Ldn;
      intermediary field_8656 Lnet/minecraft/class_2056;field_8656:Lnet/minecraft/class_1405;
      named tag Lnet/minecraft/item/ItemStack;tag:Lnet/minecraft/nbt/CompoundTag;
    • damage

      private int damage
      Mappings:
      Namespace Name Mixin selector
      official f Lzx;f:I
      intermediary field_8657 Lnet/minecraft/class_2056;field_8657:I
      named damage Lnet/minecraft/item/ItemStack;damage:I
    • itemFrame

      private ItemFrameEntity itemFrame
      Mappings:
      Namespace Name Mixin selector
      official g Lzx;g:Luo;
      intermediary field_8658 Lnet/minecraft/class_2056;field_8658:Lnet/minecraft/class_1883;
      named itemFrame Lnet/minecraft/item/ItemStack;itemFrame:Lnet/minecraft/entity/decoration/ItemFrameEntity;
    • field_8659

      private Block field_8659
      Mappings:
      Namespace Name Mixin selector
      official h Lzx;h:Lafh;
      intermediary field_8659 Lnet/minecraft/class_2056;field_8659:Lnet/minecraft/class_160;
      named field_8659 Lnet/minecraft/item/ItemStack;field_8659:Lnet/minecraft/block/Block;
    • lastDestroyResult

      private boolean lastDestroyResult
      Mappings:
      Namespace Name Mixin selector
      official i Lzx;i:Z
      intermediary field_8660 Lnet/minecraft/class_2056;field_8660:Z
      named lastDestroyResult Lnet/minecraft/item/ItemStack;lastDestroyResult:Z
    • field_8661

      private Block field_8661
      Mappings:
      Namespace Name Mixin selector
      official j Lzx;j:Lafh;
      intermediary field_8661 Lnet/minecraft/class_2056;field_8661:Lnet/minecraft/class_160;
      named field_8661 Lnet/minecraft/item/ItemStack;field_8661:Lnet/minecraft/block/Block;
    • lastPlaceOnResult

      private boolean lastPlaceOnResult
      Mappings:
      Namespace Name Mixin selector
      official k Lzx;k:Z
      intermediary field_8662 Lnet/minecraft/class_2056;field_8662:Z
      named lastPlaceOnResult Lnet/minecraft/item/ItemStack;lastPlaceOnResult:Z
  • Constructor Details

    • ItemStack

      public ItemStack​(Block block)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lzx;<init>(Lafh;)V
      intermediary <init> Lnet/minecraft/class_2056;<init>(Lnet/minecraft/class_160;)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> Lzx;<init>(Lafh;I)V
      intermediary <init> Lnet/minecraft/class_2056;<init>(Lnet/minecraft/class_160;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> Lzx;<init>(Lafh;II)V
      intermediary <init> Lnet/minecraft/class_2056;<init>(Lnet/minecraft/class_160;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> Lzx;<init>(Lzw;)V
      intermediary <init> Lnet/minecraft/class_2056;<init>(Lnet/minecraft/class_2054;)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> Lzx;<init>(Lzw;I)V
      intermediary <init> Lnet/minecraft/class_2056;<init>(Lnet/minecraft/class_2054;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> Lzx;<init>(Lzw;II)V
      intermediary <init> Lnet/minecraft/class_2056;<init>(Lnet/minecraft/class_2054;II)V
      named <init> Lnet/minecraft/item/ItemStack;<init>(Lnet/minecraft/item/Item;II)V
    • ItemStack

      private ItemStack()
  • Method Details

    • fromTag

      public static ItemStack fromTag​(CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a(Ldn;)Lzx;
      intermediary method_8342 Lnet/minecraft/class_2056;method_8342(Lnet/minecraft/class_1405;)Lnet/minecraft/class_2056;
      named fromTag Lnet/minecraft/item/ItemStack;fromTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/item/ItemStack;
    • split

      public ItemStack split​(int amount)
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a(I)Lzx;
      intermediary method_8333 Lnet/minecraft/class_2056;method_8333(I)Lnet/minecraft/class_2056;
      named split Lnet/minecraft/item/ItemStack;split(I)Lnet/minecraft/item/ItemStack;
    • getItem

      public Item getItem()
      Mappings:
      Namespace Name Mixin selector
      official b Lzx;b()Lzw;
      intermediary method_8353 Lnet/minecraft/class_2056;method_8353()Lnet/minecraft/class_2054;
      named getItem Lnet/minecraft/item/ItemStack;getItem()Lnet/minecraft/item/Item;
    • use

      public boolean use​(PlayerEntity player, World world, BlockPos pos, Direction direction, float facingX, float facingY, float facingZ)
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a(Lwn;Ladm;Lcj;Lcq;FFF)Z
      intermediary method_8347 Lnet/minecraft/class_2056;method_8347(Lnet/minecraft/class_1963;Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;FFF)Z
      named use Lnet/minecraft/item/ItemStack;use(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFF)Z
    • getMiningSpeedMultiplier

      public float getMiningSpeedMultiplier​(Block block)
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a(Lafh;)F
      intermediary method_8341 Lnet/minecraft/class_2056;method_8341(Lnet/minecraft/class_160;)F
      named getMiningSpeedMultiplier Lnet/minecraft/item/ItemStack;getMiningSpeedMultiplier(Lnet/minecraft/block/Block;)F
    • onStartUse

      public ItemStack onStartUse​(World world, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a(Ladm;Lwn;)Lzx;
      intermediary method_8339 Lnet/minecraft/class_2056;method_8339(Lnet/minecraft/class_99;Lnet/minecraft/class_1963;)Lnet/minecraft/class_2056;
      named onStartUse Lnet/minecraft/item/ItemStack;onStartUse(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
    • onFinishUse

      public ItemStack onFinishUse​(World world, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official b Lzx;b(Ladm;Lwn;)Lzx;
      intermediary method_8355 Lnet/minecraft/class_2056;method_8355(Lnet/minecraft/class_99;Lnet/minecraft/class_1963;)Lnet/minecraft/class_2056;
      named onFinishUse Lnet/minecraft/item/ItemStack;onFinishUse(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
    • toTag

      public CompoundTag toTag​(CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official b Lzx;b(Ldn;)Ldn;
      intermediary method_8358 Lnet/minecraft/class_2056;method_8358(Lnet/minecraft/class_1405;)Lnet/minecraft/class_1405;
      named toTag Lnet/minecraft/item/ItemStack;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
    • writeTag

      public void writeTag​(CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official c Lzx;c(Ldn;)V
      intermediary method_8364 Lnet/minecraft/class_2056;method_8364(Lnet/minecraft/class_1405;)V
      named writeTag Lnet/minecraft/item/ItemStack;writeTag(Lnet/minecraft/nbt/CompoundTag;)V
    • getMaxCount

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

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

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

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

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

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

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

      public void setDamage​(int damage)
      Mappings:
      Namespace Name Mixin selector
      official b Lzx;b(I)V
      intermediary method_8354 Lnet/minecraft/class_2056;method_8354(I)V
      named setDamage Lnet/minecraft/item/ItemStack;setDamage(I)V
    • getMaxDamage

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

      public boolean damage​(int amount, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a(ILjava/util/Random;)Z
      intermediary method_8334 Lnet/minecraft/class_2056;method_8334(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 Lzx;a(ILpr;)V
      intermediary method_8335 Lnet/minecraft/class_2056;method_8335(ILnet/minecraft/class_1752;)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 Lzx;a(Lpr;Lwn;)V
      intermediary method_8345 Lnet/minecraft/class_2056;method_8345(Lnet/minecraft/class_1752;Lnet/minecraft/class_1963;)V
      named onEntityHit Lnet/minecraft/item/ItemStack;onEntityHit(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/player/PlayerEntity;)V
    • onBlockBroken

      public void onBlockBroken​(World world, Block block, BlockPos pos, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a(Ladm;Lafh;Lcj;Lwn;)V
      intermediary method_8337 Lnet/minecraft/class_2056;method_8337(Lnet/minecraft/class_99;Lnet/minecraft/class_160;Lnet/minecraft/class_1372;Lnet/minecraft/class_1963;)V
      named onBlockBroken Lnet/minecraft/item/ItemStack;onBlockBroken(Lnet/minecraft/world/World;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;)V
    • isEffectiveOn

      public boolean isEffectiveOn​(Block block)
      Mappings:
      Namespace Name Mixin selector
      official b Lzx;b(Lafh;)Z
      intermediary method_8357 Lnet/minecraft/class_2056;method_8357(Lnet/minecraft/class_160;)Z
      named isEffectiveOn Lnet/minecraft/item/ItemStack;isEffectiveOn(Lnet/minecraft/block/Block;)Z
    • canUseOnEntity

      public boolean canUseOnEntity​(PlayerEntity player, LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a(Lwn;Lpr;)Z
      intermediary method_8348 Lnet/minecraft/class_2056;method_8348(Lnet/minecraft/class_1963;Lnet/minecraft/class_1752;)Z
      named canUseOnEntity Lnet/minecraft/item/ItemStack;canUseOnEntity(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/LivingEntity;)Z
    • copy

      public ItemStack copy()
      Mappings:
      Namespace Name Mixin selector
      official k Lzx;k()Lzx;
      intermediary method_8378 Lnet/minecraft/class_2056;method_8378()Lnet/minecraft/class_2056;
      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 Lzx;a(Lzx;Lzx;)Z
      intermediary method_8352 Lnet/minecraft/class_2056;method_8352(Lnet/minecraft/class_2056;Lnet/minecraft/class_2056;)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 Lzx;b(Lzx;Lzx;)Z
      intermediary method_8360 Lnet/minecraft/class_2056;method_8360(Lnet/minecraft/class_2056;Lnet/minecraft/class_2056;)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 Lzx;d(Lzx;)Z
      intermediary method_8371 Lnet/minecraft/class_2056;method_8371(Lnet/minecraft/class_2056;)Z
      named equalsAll Lnet/minecraft/item/ItemStack;equalsAll(Lnet/minecraft/item/ItemStack;)Z
    • equalsIgnoreTags

      public static boolean equalsIgnoreTags​(ItemStack left, ItemStack right)
      Mappings:
      Namespace Name Mixin selector
      official c Lzx;c(Lzx;Lzx;)Z
      intermediary method_8367 Lnet/minecraft/class_2056;method_8367(Lnet/minecraft/class_2056;Lnet/minecraft/class_2056;)Z
      named equalsIgnoreTags Lnet/minecraft/item/ItemStack;equalsIgnoreTags(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
    • equalsIgnoreTags

      public boolean equalsIgnoreTags​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a(Lzx;)Z
      intermediary method_8351 Lnet/minecraft/class_2056;method_8351(Lnet/minecraft/class_2056;)Z
      named equalsIgnoreTags Lnet/minecraft/item/ItemStack;equalsIgnoreTags(Lnet/minecraft/item/ItemStack;)Z
    • getTranslationKey

      public String getTranslationKey()
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a()Ljava/lang/String;
      intermediary method_8332 Lnet/minecraft/class_2056;method_8332()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 b Lzx;b(Lzx;)Lzx;
      intermediary method_8359 Lnet/minecraft/class_2056;method_8359(Lnet/minecraft/class_2056;)Lnet/minecraft/class_2056;
      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 Lzx;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_2056;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 Lzx;a(Ladm;Lpk;IZ)V
      intermediary method_8338 Lnet/minecraft/class_2056;method_8338(Lnet/minecraft/class_99;Lnet/minecraft/class_1745;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 Lzx;a(Ladm;Lwn;I)V
      intermediary method_8340 Lnet/minecraft/class_2056;method_8340(Lnet/minecraft/class_99;Lnet/minecraft/class_1963;I)V
      named onCraft Lnet/minecraft/item/ItemStack;onCraft(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;I)V
    • method_8366

      @Environment(CLIENT) public boolean method_8366​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official c Lzx;c(Lzx;)Z
      intermediary method_8366 Lnet/minecraft/class_2056;method_8366(Lnet/minecraft/class_2056;)Z
      named method_8366 Lnet/minecraft/item/ItemStack;method_8366(Lnet/minecraft/item/ItemStack;)Z
    • getMaxUseTime

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

      public UseAction getUseAction()
      Mappings:
      Namespace Name Mixin selector
      official m Lzx;m()Laba;
      intermediary method_8380 Lnet/minecraft/class_2056;method_8380()Lnet/minecraft/class_30;
      named getUseAction Lnet/minecraft/item/ItemStack;getUseAction()Lnet/minecraft/util/UseAction;
    • onUseStopped

      public void onUseStopped​(World world, PlayerEntity player, int timeLeft)
      Mappings:
      Namespace Name Mixin selector
      official b Lzx;b(Ladm;Lwn;I)V
      intermediary method_8356 Lnet/minecraft/class_2056;method_8356(Lnet/minecraft/class_99;Lnet/minecraft/class_1963;I)V
      named onUseStopped Lnet/minecraft/item/ItemStack;onUseStopped(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;I)V
    • hasTag

      public boolean hasTag()
      Mappings:
      Namespace Name Mixin selector
      official n Lzx;n()Z
      intermediary method_8381 Lnet/minecraft/class_2056;method_8381()Z
      named hasTag Lnet/minecraft/item/ItemStack;hasTag()Z
    • getTag

      public CompoundTag getTag()
      Mappings:
      Namespace Name Mixin selector
      official o Lzx;o()Ldn;
      intermediary method_8382 Lnet/minecraft/class_2056;method_8382()Lnet/minecraft/class_1405;
      named getTag Lnet/minecraft/item/ItemStack;getTag()Lnet/minecraft/nbt/CompoundTag;
    • getSubTag

      public CompoundTag getSubTag​(String name, boolean createIfNull)
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a(Ljava/lang/String;Z)Ldn;
      intermediary method_8344 Lnet/minecraft/class_2056;method_8344(Ljava/lang/String;Z)Lnet/minecraft/class_1405;
      named getSubTag Lnet/minecraft/item/ItemStack;getSubTag(Ljava/lang/String;Z)Lnet/minecraft/nbt/CompoundTag;
    • getEnchantments

      public ListTag getEnchantments()
      Mappings:
      Namespace Name Mixin selector
      official p Lzx;p()Ldu;
      intermediary method_8383 Lnet/minecraft/class_2056;method_8383()Lnet/minecraft/class_1411;
      named getEnchantments Lnet/minecraft/item/ItemStack;getEnchantments()Lnet/minecraft/nbt/ListTag;
    • setTag

      public void setTag​(CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official d Lzx;d(Ldn;)V
      intermediary method_8370 Lnet/minecraft/class_2056;method_8370(Lnet/minecraft/class_1405;)V
      named setTag Lnet/minecraft/item/ItemStack;setTag(Lnet/minecraft/nbt/CompoundTag;)V
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official q Lzx;q()Ljava/lang/String;
      intermediary method_8384 Lnet/minecraft/class_2056;method_8384()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 Lzx;c(Ljava/lang/String;)Lzx;
      intermediary method_8365 Lnet/minecraft/class_2056;method_8365(Ljava/lang/String;)Lnet/minecraft/class_2056;
      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 Lzx;r()V
      intermediary method_8385 Lnet/minecraft/class_2056;method_8385()V
      named removeCustomName Lnet/minecraft/item/ItemStack;removeCustomName()V
    • hasCustomName

      public boolean hasCustomName()
      Mappings:
      Namespace Name Mixin selector
      official s Lzx;s()Z
      intermediary method_8386 Lnet/minecraft/class_2056;method_8386()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 Lzx;a(Lwn;Z)Ljava/util/List;
      intermediary method_8349 Lnet/minecraft/class_2056;method_8349(Lnet/minecraft/class_1963;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 Lzx;t()Z
      intermediary method_8387 Lnet/minecraft/class_2056;method_8387()Z
      named hasEnchantmentGlint Lnet/minecraft/item/ItemStack;hasEnchantmentGlint()Z
    • getRarity

      public Rarity getRarity()
      Mappings:
      Namespace Name Mixin selector
      official u Lzx;u()Laaj;
      intermediary method_8388 Lnet/minecraft/class_2056;method_8388()Lnet/minecraft/class_12;
      named getRarity Lnet/minecraft/item/ItemStack;getRarity()Lnet/minecraft/util/Rarity;
    • isEnchantable

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

      public void addEnchantment​(Enchantment enchantment, int level)
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a(Laci;I)V
      intermediary method_8336 Lnet/minecraft/class_2056;method_8336(Lnet/minecraft/class_64;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 Lzx;w()Z
      intermediary method_8390 Lnet/minecraft/class_2056;method_8390()Z
      named hasEnchantments Lnet/minecraft/item/ItemStack;hasEnchantments()Z
    • putSubTag

      public void putSubTag​(String key, Tag tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a(Ljava/lang/String;Leb;)V
      intermediary method_8343 Lnet/minecraft/class_2056;method_8343(Ljava/lang/String;Lnet/minecraft/class_1419;)V
      named putSubTag Lnet/minecraft/item/ItemStack;putSubTag(Ljava/lang/String;Lnet/minecraft/nbt/Tag;)V
    • hasSubTypes

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

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

      public void setInItemFrame​(ItemFrameEntity itemFrame)
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a(Luo;)V
      intermediary method_8346 Lnet/minecraft/class_2056;method_8346(Lnet/minecraft/class_1883;)V
      named setInItemFrame Lnet/minecraft/item/ItemStack;setInItemFrame(Lnet/minecraft/entity/decoration/ItemFrameEntity;)V
    • getItemFrame

      public ItemFrameEntity getItemFrame()
      Mappings:
      Namespace Name Mixin selector
      official z Lzx;z()Luo;
      intermediary method_8393 Lnet/minecraft/class_2056;method_8393()Lnet/minecraft/class_1883;
      named getItemFrame Lnet/minecraft/item/ItemStack;getItemFrame()Lnet/minecraft/entity/decoration/ItemFrameEntity;
    • getRepairCost

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

      public void setRepairCost​(int cost)
      Mappings:
      Namespace Name Mixin selector
      official c Lzx;c(I)V
      intermediary method_8362 Lnet/minecraft/class_2056;method_8362(I)V
      named setRepairCost Lnet/minecraft/item/ItemStack;setRepairCost(I)V
    • getAttributes

      public Multimap<String,​AttributeModifier> getAttributes()
      Mappings:
      Namespace Name Mixin selector
      official B Lzx;B()Lcom/google/common/collect/Multimap;
      intermediary method_8330 Lnet/minecraft/class_2056;method_8330()Lcom/google/common/collect/Multimap;
      named getAttributes Lnet/minecraft/item/ItemStack;getAttributes()Lcom/google/common/collect/Multimap;
    • setItem

      public void setItem​(Item item)
      Mappings:
      Namespace Name Mixin selector
      official a Lzx;a(Lzw;)V
      intermediary method_8350 Lnet/minecraft/class_2056;method_8350(Lnet/minecraft/class_2054;)V
      named setItem Lnet/minecraft/item/ItemStack;setItem(Lnet/minecraft/item/Item;)V
    • toHoverableText

      public Text toHoverableText()
      Mappings:
      Namespace Name Mixin selector
      official C Lzx;C()Leu;
      intermediary method_8331 Lnet/minecraft/class_2056;method_8331()Lnet/minecraft/class_1444;
      named toHoverableText Lnet/minecraft/item/ItemStack;toHoverableText()Lnet/minecraft/text/Text;
    • canDestroy

      public boolean canDestroy​(Block block)
      Mappings:
      Namespace Name Mixin selector
      official c Lzx;c(Lafh;)Z
      intermediary method_8363 Lnet/minecraft/class_2056;method_8363(Lnet/minecraft/class_160;)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 d Lzx;d(Lafh;)Z
      intermediary method_8369 Lnet/minecraft/class_2056;method_8369(Lnet/minecraft/class_160;)Z
      named canPlaceOn Lnet/minecraft/item/ItemStack;canPlaceOn(Lnet/minecraft/block/Block;)Z