Class ItemStack

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

public final class ItemStack extends Object
Mappings:
Namespace Name
official amj
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 Lamj;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 Lamj;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 Lamj;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 Lamj;d:Lalq;
      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 Lamj;e:Lfn;
      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 Lamj;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 Lamj;g:Ladk;
      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 Lamj;h:Latr;
      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 Lamj;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 Lamj;j:Latr;
      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 Lamj;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> Lamj;<init>(Latr;)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> Lamj;<init>(Latr;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> Lamj;<init>(Latr;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> Lamj;<init>(Lalq;)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> Lamj;<init>(Lalq;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> Lamj;<init>(Lalq;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 Lamj;a(Lfn;)Lamj;
      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 Lamj;a(I)Lamj;
      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 Lamj;b()Lalq;
      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 boolean use(PlayerEntity player, World world, BlockPos pos, Direction direction, float facingX, float facingY, float facingZ)
      Mappings:
      Namespace Name Mixin selector
      official a Lamj;a(Lahd;Laqu;Ldt;Lej;FFF)Z
      intermediary method_11308 Lnet/minecraft/class_1071;method_11308(Lnet/minecraft/class_988;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;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 Lamj;a(Latr;)F
      intermediary method_3407 Lnet/minecraft/class_1071;method_3407(Lnet/minecraft/class_197;)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 Lamj;a(Laqu;Lahd;)Lamj;
      intermediary method_3419 Lnet/minecraft/class_1071;method_3419(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;)Lnet/minecraft/class_1071;
      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 Lamj;b(Laqu;Lahd;)Lamj;
      intermediary method_3427 Lnet/minecraft/class_1071;method_3427(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;)Lnet/minecraft/class_1071;
      named onFinishUse Lnet/minecraft/item/ItemStack;onFinishUse(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
    • toNbt

      public NbtCompound toNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official b Lamj;b(Lfn;)Lfn;
      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 Lamj;c(Lfn;)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 Lamj;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 Lamj;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 Lamj;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 Lamj;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 Lamj;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 Lamj;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 Lamj;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 Lamj;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 Lamj;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 Lamj;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 Lamj;a(ILxm;)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 Lamj;a(Lxm;Lahd;)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
    • onBlockBroken

      public void onBlockBroken(World world, Block block, BlockPos pos, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lamj;a(Laqu;Latr;Ldt;Lahd;)V
      intermediary method_11306 Lnet/minecraft/class_1071;method_11306(Lnet/minecraft/class_1150;Lnet/minecraft/class_197;Lnet/minecraft/class_2552;Lnet/minecraft/class_988;)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 Lamj;b(Latr;)Z
      intermediary method_3423 Lnet/minecraft/class_1071;method_3423(Lnet/minecraft/class_197;)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 Lamj;a(Lahd;Lxm;)Z
      intermediary method_6329 Lnet/minecraft/class_1071;method_6329(Lnet/minecraft/class_988;Lnet/minecraft/class_1699;)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 Lamj;k()Lamj;
      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 Lamj;a(Lamj;Lamj;)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 Lamj;b(Lamj;Lamj;)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 Lamj;d(Lamj;)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 Lamj;c(Lamj;Lamj;)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
    • equalsIgnoreNbt

      public boolean equalsIgnoreNbt(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lamj;a(Lamj;)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
    • getTranslationKey

      public String getTranslationKey()
      Mappings:
      Namespace Name Mixin selector
      official a Lamj;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 b Lamj;b(Lamj;)Lamj;
      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 Lamj;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 Lamj;a(Laqu;Lwv;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 Lamj;a(Laqu;Lahd;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
    • method_11310

      @Environment(CLIENT) public boolean method_11310(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official c Lamj;c(Lamj;)Z
      intermediary method_11310 Lnet/minecraft/class_1071;method_11310(Lnet/minecraft/class_1071;)Z
      named method_11310 Lnet/minecraft/item/ItemStack;method_11310(Lnet/minecraft/item/ItemStack;)Z
    • getMaxUseTime

      public int getMaxUseTime()
      Mappings:
      Namespace Name Mixin selector
      official l Lamj;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 Lamj;m()Lano;
      intermediary method_3444 Lnet/minecraft/class_1071;method_3444()Lnet/minecraft/class_1099;
      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 Lamj;b(Laqu;Lahd;I)V
      intermediary method_3428 Lnet/minecraft/class_1071;method_3428(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;I)V
      named onUseStopped Lnet/minecraft/item/ItemStack;onUseStopped(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;I)V
    • hasNbt

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

      public NbtCompound getNbt()
      Mappings:
      Namespace Name Mixin selector
      official o Lamj;o()Lfn;
      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 Lamj;a(Ljava/lang/String;Z)Lfn;
      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 Lamj;p()Lfv;
      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 Lamj;d(Lfn;)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 Lamj;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 Lamj;c(Ljava/lang/String;)Lamj;
      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 Lamj;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 Lamj;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 getTooltip(PlayerEntity player, boolean advanced)
      Mappings:
      Namespace Name Mixin selector
      official a Lamj;a(Lahd;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 Lamj;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 Lamj;u()Lamx;
      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 Lamj;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 Lamj;a(Lapf;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 Lamj;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 Lamj;a(Ljava/lang/String;Lgd;)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 Lamj;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 Lamj;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 Lamj;a(Ladk;)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

      public ItemFrameEntity getItemFrame()
      Mappings:
      Namespace Name Mixin selector
      official z Lamj;z()Ladk;
      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 Lamj;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 Lamj;c(I)V
      intermediary method_4621 Lnet/minecraft/class_1071;method_4621(I)V
      named setRepairCost Lnet/minecraft/item/ItemStack;setRepairCost(I)V
    • getAttributes

      public Multimap getAttributes()
      Mappings:
      Namespace Name Mixin selector
      official B Lamj;B()Lcom/google/common/collect/Multimap;
      intermediary method_6327 Lnet/minecraft/class_1071;method_6327()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 Lamj;a(Lalq;)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 C Lamj;C()Lho;
      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 c Lamj;c(Latr;)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 d Lamj;d(Latr;)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