类 ItemStack


  • public final class ItemStack
    extends Object
    Mappings:
    Namespace Name
    official bpr
    intermediary net/minecraft/class_1799
    named net/minecraft/item/ItemStack
    • 字段详细资料

      • CODEC

        public static final com.mojang.serialization.Codec<ItemStack> CODEC
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a:Lcom/mojang/serialization/Codec;
        intermediary field_24671 Lnet/minecraft/class_1799;field_24671:Lcom/mojang/serialization/Codec;
        named CODEC Lnet/minecraft/item/ItemStack;CODEC:Lcom/mojang/serialization/Codec;
      • LOGGER

        private static final Logger LOGGER
        Mappings:
        Namespace Name Mixin selector
        official l Lbpr;l:Lorg/apache/logging/log4j/Logger;
        intermediary field_8033 Lnet/minecraft/class_1799;field_8033:Lorg/apache/logging/log4j/Logger;
        named LOGGER Lnet/minecraft/item/ItemStack;LOGGER:Lorg/apache/logging/log4j/Logger;
      • EMPTY

        public static final ItemStack EMPTY
        Mappings:
        Namespace Name Mixin selector
        official b Lbpr;b:Lbpr;
        intermediary field_8037 Lnet/minecraft/class_1799;field_8037:Lnet/minecraft/class_1799;
        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 c Lbpr;c:Ljava/text/DecimalFormat;
        intermediary field_8029 Lnet/minecraft/class_1799;field_8029:Ljava/text/DecimalFormat;
        named MODIFIER_FORMAT Lnet/minecraft/item/ItemStack;MODIFIER_FORMAT:Ljava/text/DecimalFormat;
      • ENCHANTMENTS_KEY

        public static final String ENCHANTMENTS_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official d Lbpr;d:Ljava/lang/String;
        intermediary field_30890 Lnet/minecraft/class_1799;field_30890:Ljava/lang/String;
        named ENCHANTMENTS_KEY Lnet/minecraft/item/ItemStack;ENCHANTMENTS_KEY:Ljava/lang/String;
      • ID_KEY

        public static final String ID_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official e Lbpr;e:Ljava/lang/String;
        intermediary field_30891 Lnet/minecraft/class_1799;field_30891:Ljava/lang/String;
        named ID_KEY Lnet/minecraft/item/ItemStack;ID_KEY:Ljava/lang/String;
      • LVL_KEY

        public static final String LVL_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official f Lbpr;f:Ljava/lang/String;
        intermediary field_30892 Lnet/minecraft/class_1799;field_30892:Ljava/lang/String;
        named LVL_KEY Lnet/minecraft/item/ItemStack;LVL_KEY:Ljava/lang/String;
      • DISPLAY_KEY

        public static final String DISPLAY_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official g Lbpr;g:Ljava/lang/String;
        intermediary field_30893 Lnet/minecraft/class_1799;field_30893:Ljava/lang/String;
        named DISPLAY_KEY Lnet/minecraft/item/ItemStack;DISPLAY_KEY:Ljava/lang/String;
      • NAME_KEY

        public static final String NAME_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official h Lbpr;h:Ljava/lang/String;
        intermediary field_30894 Lnet/minecraft/class_1799;field_30894:Ljava/lang/String;
        named NAME_KEY Lnet/minecraft/item/ItemStack;NAME_KEY:Ljava/lang/String;
      • LORE_KEY

        public static final String LORE_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official i Lbpr;i:Ljava/lang/String;
        intermediary field_30895 Lnet/minecraft/class_1799;field_30895:Ljava/lang/String;
        named LORE_KEY Lnet/minecraft/item/ItemStack;LORE_KEY:Ljava/lang/String;
      • DAMAGE_KEY

        public static final String DAMAGE_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official j Lbpr;j:Ljava/lang/String;
        intermediary field_30896 Lnet/minecraft/class_1799;field_30896:Ljava/lang/String;
        named DAMAGE_KEY Lnet/minecraft/item/ItemStack;DAMAGE_KEY:Ljava/lang/String;
      • COLOR_KEY

        public static final String COLOR_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official k Lbpr;k:Ljava/lang/String;
        intermediary field_30897 Lnet/minecraft/class_1799;field_30897:Ljava/lang/String;
        named COLOR_KEY Lnet/minecraft/item/ItemStack;COLOR_KEY:Ljava/lang/String;
      • UNBREAKABLE_KEY

        private static final String UNBREAKABLE_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official m Lbpr;m:Ljava/lang/String;
        intermediary field_30898 Lnet/minecraft/class_1799;field_30898:Ljava/lang/String;
        named UNBREAKABLE_KEY Lnet/minecraft/item/ItemStack;UNBREAKABLE_KEY:Ljava/lang/String;
      • REPAIR_COST_KEY

        private static final String REPAIR_COST_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official n Lbpr;n:Ljava/lang/String;
        intermediary field_30899 Lnet/minecraft/class_1799;field_30899:Ljava/lang/String;
        named REPAIR_COST_KEY Lnet/minecraft/item/ItemStack;REPAIR_COST_KEY:Ljava/lang/String;
      • CAN_DESTROY_KEY

        private static final String CAN_DESTROY_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official o Lbpr;o:Ljava/lang/String;
        intermediary field_30900 Lnet/minecraft/class_1799;field_30900:Ljava/lang/String;
        named CAN_DESTROY_KEY Lnet/minecraft/item/ItemStack;CAN_DESTROY_KEY:Ljava/lang/String;
      • CAN_PLACE_ON_KEY

        private static final String CAN_PLACE_ON_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official p Lbpr;p:Ljava/lang/String;
        intermediary field_30901 Lnet/minecraft/class_1799;field_30901:Ljava/lang/String;
        named CAN_PLACE_ON_KEY Lnet/minecraft/item/ItemStack;CAN_PLACE_ON_KEY:Ljava/lang/String;
      • HIDE_FLAGS_KEY

        private static final String HIDE_FLAGS_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official q Lbpr;q:Ljava/lang/String;
        intermediary field_30902 Lnet/minecraft/class_1799;field_30902:Ljava/lang/String;
        named HIDE_FLAGS_KEY Lnet/minecraft/item/ItemStack;HIDE_FLAGS_KEY:Ljava/lang/String;
      • field_30903

        private static final int field_30903
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official r Lbpr;r:I
        intermediary field_30903 Lnet/minecraft/class_1799;field_30903:I
        named field_30903 Lnet/minecraft/item/ItemStack;field_30903:I
      • LORE_STYLE

        private static final Style LORE_STYLE
        Mappings:
        Namespace Name Mixin selector
        official s Lbpr;s:Lox;
        intermediary field_24092 Lnet/minecraft/class_1799;field_24092:Lnet/minecraft/class_2583;
        named LORE_STYLE Lnet/minecraft/item/ItemStack;LORE_STYLE:Lnet/minecraft/text/Style;
      • count

        private int count
        Mappings:
        Namespace Name Mixin selector
        official t Lbpr;t:I
        intermediary field_8031 Lnet/minecraft/class_1799;field_8031:I
        named count Lnet/minecraft/item/ItemStack;count:I
      • cooldown

        private int cooldown
        Mappings:
        Namespace Name Mixin selector
        official u Lbpr;u:I
        intermediary field_8030 Lnet/minecraft/class_1799;field_8030:I
        named cooldown Lnet/minecraft/item/ItemStack;cooldown:I
      • item

        @Deprecated
        private final Item item
        已过时。
        Mappings:
        Namespace Name Mixin selector
        official v Lbpr;v:Lbpn;
        intermediary field_8038 Lnet/minecraft/class_1799;field_8038:Lnet/minecraft/class_1792;
        named item Lnet/minecraft/item/ItemStack;item:Lnet/minecraft/item/Item;
      • tag

        private CompoundTag tag
        Mappings:
        Namespace Name Mixin selector
        official w Lbpr;w:Lmv;
        intermediary field_8040 Lnet/minecraft/class_1799;field_8040:Lnet/minecraft/class_2487;
        named tag Lnet/minecraft/item/ItemStack;tag:Lnet/minecraft/nbt/CompoundTag;
      • empty

        private boolean empty
        Mappings:
        Namespace Name Mixin selector
        official x Lbpr;x:Z
        intermediary field_8036 Lnet/minecraft/class_1799;field_8036:Z
        named empty Lnet/minecraft/item/ItemStack;empty:Z
      • holder

        private Entity holder
        Mappings:
        Namespace Name Mixin selector
        official y Lbpr;y:Lasl;
        intermediary field_24093 Lnet/minecraft/class_1799;field_24093:Lnet/minecraft/class_1297;
        named holder Lnet/minecraft/item/ItemStack;holder:Lnet/minecraft/entity/Entity;
      • lastDestroyPos

        private CachedBlockPosition lastDestroyPos
        Mappings:
        Namespace Name Mixin selector
        official z Lbpr;z:Lcjv;
        intermediary field_8039 Lnet/minecraft/class_1799;field_8039:Lnet/minecraft/class_2694;
        named lastDestroyPos Lnet/minecraft/item/ItemStack;lastDestroyPos:Lnet/minecraft/block/pattern/CachedBlockPosition;
      • lastDestroyResult

        private boolean lastDestroyResult
        Mappings:
        Namespace Name Mixin selector
        official A Lbpr;A:Z
        intermediary field_8035 Lnet/minecraft/class_1799;field_8035:Z
        named lastDestroyResult Lnet/minecraft/item/ItemStack;lastDestroyResult:Z
      • lastPlaceOnPos

        private CachedBlockPosition lastPlaceOnPos
        Mappings:
        Namespace Name Mixin selector
        official B Lbpr;B:Lcjv;
        intermediary field_8032 Lnet/minecraft/class_1799;field_8032:Lnet/minecraft/class_2694;
        named lastPlaceOnPos Lnet/minecraft/item/ItemStack;lastPlaceOnPos:Lnet/minecraft/block/pattern/CachedBlockPosition;
      • lastPlaceOnResult

        private boolean lastPlaceOnResult
        Mappings:
        Namespace Name Mixin selector
        official C Lbpr;C:Z
        intermediary field_8034 Lnet/minecraft/class_1799;field_8034:Z
        named lastPlaceOnResult Lnet/minecraft/item/ItemStack;lastPlaceOnResult:Z
    • 构造器详细资料

      • ItemStack

        public ItemStack​(ItemConvertible item)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbpr;<init>(Lbvq;)V
        intermediary <init> Lnet/minecraft/class_1799;<init>(Lnet/minecraft/class_1935;)V
        named <init> Lnet/minecraft/item/ItemStack;<init>(Lnet/minecraft/item/ItemConvertible;)V
      • ItemStack

        private ItemStack​(ItemConvertible item,
                          int count,
                          Optional<CompoundTag> tag)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbpr;<init>(Lbvq;ILjava/util/Optional;)V
        intermediary <init> Lnet/minecraft/class_1799;<init>(Lnet/minecraft/class_1935;ILjava/util/Optional;)V
        named <init> Lnet/minecraft/item/ItemStack;<init>(Lnet/minecraft/item/ItemConvertible;ILjava/util/Optional;)V
      • ItemStack

        public ItemStack​(ItemConvertible item,
                         int count)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbpr;<init>(Lbvq;I)V
        intermediary <init> Lnet/minecraft/class_1799;<init>(Lnet/minecraft/class_1935;I)V
        named <init> Lnet/minecraft/item/ItemStack;<init>(Lnet/minecraft/item/ItemConvertible;I)V
      • ItemStack

        private ItemStack​(CompoundTag tag)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbpr;<init>(Lmv;)V
        intermediary <init> Lnet/minecraft/class_1799;<init>(Lnet/minecraft/class_2487;)V
        named <init> Lnet/minecraft/item/ItemStack;<init>(Lnet/minecraft/nbt/CompoundTag;)V
    • 方法详细资料

      • getTooltipData

        public Optional<TooltipData> getTooltipData()
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a()Ljava/util/Optional;
        intermediary method_32347 Lnet/minecraft/class_1799;method_32347()Ljava/util/Optional;
        named getTooltipData Lnet/minecraft/item/ItemStack;getTooltipData()Ljava/util/Optional;
      • updateEmptyState

        private void updateEmptyState()
        Mappings:
        Namespace Name Mixin selector
        official N Lbpr;N()V
        intermediary method_7957 Lnet/minecraft/class_1799;method_7957()V
        named updateEmptyState Lnet/minecraft/item/ItemStack;updateEmptyState()V
      • fromNbt

        public static ItemStack fromNbt​(CompoundTag nbt)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lmv;)Lbpr;
        intermediary method_7915 Lnet/minecraft/class_1799;method_7915(Lnet/minecraft/class_2487;)Lnet/minecraft/class_1799;
        named fromNbt Lnet/minecraft/item/ItemStack;fromNbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/item/ItemStack;
      • isEmpty

        public boolean isEmpty()
        Mappings:
        Namespace Name Mixin selector
        official b Lbpr;b()Z
        intermediary method_7960 Lnet/minecraft/class_1799;method_7960()Z
        named isEmpty Lnet/minecraft/item/ItemStack;isEmpty()Z
      • split

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

        public Item getItem()
        Mappings:
        Namespace Name Mixin selector
        official c Lbpr;c()Lbpn;
        intermediary method_7909 Lnet/minecraft/class_1799;method_7909()Lnet/minecraft/class_1792;
        named getItem Lnet/minecraft/item/ItemStack;getItem()Lnet/minecraft/item/Item;
      • isIn

        public boolean isIn​(Tag<Item> tag)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lafs;)Z
        intermediary method_31573 Lnet/minecraft/class_1799;method_31573(Lnet/minecraft/class_3494;)Z
        named isIn Lnet/minecraft/item/ItemStack;isIn(Lnet/minecraft/tag/Tag;)Z
      • isOf

        public boolean isOf​(Item item)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbpn;)Z
        intermediary method_31574 Lnet/minecraft/class_1799;method_31574(Lnet/minecraft/class_1792;)Z
        named isOf Lnet/minecraft/item/ItemStack;isOf(Lnet/minecraft/item/Item;)Z
      • useOnBlock

        public ActionResult useOnBlock​(ItemUsageContext context)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbrt;)Larg;
        intermediary method_7981 Lnet/minecraft/class_1799;method_7981(Lnet/minecraft/class_1838;)Lnet/minecraft/class_1269;
        named useOnBlock Lnet/minecraft/item/ItemStack;useOnBlock(Lnet/minecraft/item/ItemUsageContext;)Lnet/minecraft/util/ActionResult;
      • getMiningSpeedMultiplier

        public float getMiningSpeedMultiplier​(BlockState state)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lcjr;)F
        intermediary method_7924 Lnet/minecraft/class_1799;method_7924(Lnet/minecraft/class_2680;)F
        named getMiningSpeedMultiplier Lnet/minecraft/item/ItemStack;getMiningSpeedMultiplier(Lnet/minecraft/block/BlockState;)F
      • use

        public TypedActionResult<ItemStack> use​(World world,
                                                PlayerEntity user,
                                                Hand hand)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbvr;Lbjf;Larf;)Larh;
        intermediary method_7913 Lnet/minecraft/class_1799;method_7913(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1271;
        named use Lnet/minecraft/item/ItemStack;use(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;
      • finishUsing

        public ItemStack finishUsing​(World world,
                                     LivingEntity user)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbvr;Lasy;)Lbpr;
        intermediary method_7910 Lnet/minecraft/class_1799;method_7910(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;)Lnet/minecraft/class_1799;
        named finishUsing Lnet/minecraft/item/ItemStack;finishUsing(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/item/ItemStack;
      • writeNbt

        public CompoundTag writeNbt​(CompoundTag nbt)
        Mappings:
        Namespace Name Mixin selector
        official b Lbpr;b(Lmv;)Lmv;
        intermediary method_7953 Lnet/minecraft/class_1799;method_7953(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
        named writeNbt Lnet/minecraft/item/ItemStack;writeNbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
      • getMaxCount

        public int getMaxCount()
        Mappings:
        Namespace Name Mixin selector
        official d Lbpr;d()I
        intermediary method_7914 Lnet/minecraft/class_1799;method_7914()I
        named getMaxCount Lnet/minecraft/item/ItemStack;getMaxCount()I
      • isStackable

        public boolean isStackable()
        Mappings:
        Namespace Name Mixin selector
        official e Lbpr;e()Z
        intermediary method_7946 Lnet/minecraft/class_1799;method_7946()Z
        named isStackable Lnet/minecraft/item/ItemStack;isStackable()Z
      • isDamageable

        public boolean isDamageable()
        Mappings:
        Namespace Name Mixin selector
        official f Lbpr;f()Z
        intermediary method_7963 Lnet/minecraft/class_1799;method_7963()Z
        named isDamageable Lnet/minecraft/item/ItemStack;isDamageable()Z
      • isDamaged

        public boolean isDamaged()
        Mappings:
        Namespace Name Mixin selector
        official g Lbpr;g()Z
        intermediary method_7986 Lnet/minecraft/class_1799;method_7986()Z
        named isDamaged Lnet/minecraft/item/ItemStack;isDamaged()Z
      • getDamage

        public int getDamage()
        Mappings:
        Namespace Name Mixin selector
        official h Lbpr;h()I
        intermediary method_7919 Lnet/minecraft/class_1799;method_7919()I
        named getDamage Lnet/minecraft/item/ItemStack;getDamage()I
      • setDamage

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

        public int getMaxDamage()
        Mappings:
        Namespace Name Mixin selector
        official i Lbpr;i()I
        intermediary method_7936 Lnet/minecraft/class_1799;method_7936()I
        named getMaxDamage Lnet/minecraft/item/ItemStack;getMaxDamage()I
      • damage

        public boolean damage​(int amount,
                              Random random,
                              @Nullable
                              @Nullable ServerPlayerEntity player)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(ILjava/util/Random;Labk;)Z
        intermediary method_7970 Lnet/minecraft/class_1799;method_7970(ILjava/util/Random;Lnet/minecraft/class_3222;)Z
        named damage Lnet/minecraft/item/ItemStack;damage(ILjava/util/Random;Lnet/minecraft/server/network/ServerPlayerEntity;)Z
      • damage

        public <T extends LivingEntity> void damage​(int amount,
                                                    T entity,
                                                    Consumer<T> breakCallback)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(ILasy;Ljava/util/function/Consumer;)V
        intermediary method_7956 Lnet/minecraft/class_1799;method_7956(ILnet/minecraft/class_1309;Ljava/util/function/Consumer;)V
        named damage Lnet/minecraft/item/ItemStack;damage(ILnet/minecraft/entity/LivingEntity;Ljava/util/function/Consumer;)V
      • isItemBarVisible

        public boolean isItemBarVisible()
        Mappings:
        Namespace Name Mixin selector
        official j Lbpr;j()Z
        intermediary method_31578 Lnet/minecraft/class_1799;method_31578()Z
        named isItemBarVisible Lnet/minecraft/item/ItemStack;isItemBarVisible()Z
      • getItemBarStep

        public int getItemBarStep()
        Mappings:
        Namespace Name Mixin selector
        official k Lbpr;k()I
        intermediary method_31579 Lnet/minecraft/class_1799;method_31579()I
        named getItemBarStep Lnet/minecraft/item/ItemStack;getItemBarStep()I
      • getItemBarColor

        public int getItemBarColor()
        Mappings:
        Namespace Name Mixin selector
        official l Lbpr;l()I
        intermediary method_31580 Lnet/minecraft/class_1799;method_31580()I
        named getItemBarColor Lnet/minecraft/item/ItemStack;getItemBarColor()I
      • onStackClicked

        public boolean onStackClicked​(Slot slot,
                                      ClickType clickType,
                                      PlayerEntity player)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbnc;Lblt;Lbjf;)Z
        intermediary method_31575 Lnet/minecraft/class_1799;method_31575(Lnet/minecraft/class_1735;Lnet/minecraft/class_5536;Lnet/minecraft/class_1657;)Z
        named onStackClicked Lnet/minecraft/item/ItemStack;onStackClicked(Lnet/minecraft/screen/slot/Slot;Lnet/minecraft/util/ClickType;Lnet/minecraft/entity/player/PlayerEntity;)Z
      • onClicked

        public boolean onClicked​(ItemStack stack,
                                 Slot slot,
                                 ClickType clickType,
                                 PlayerEntity player,
                                 CommandItemSlot cursorSlot)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbpr;Lbnc;Lblt;Lbjf;Lato;)Z
        intermediary method_31576 Lnet/minecraft/class_1799;method_31576(Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;Lnet/minecraft/class_5536;Lnet/minecraft/class_1657;Lnet/minecraft/class_5630;)Z
        named onClicked Lnet/minecraft/item/ItemStack;onClicked(Lnet/minecraft/item/ItemStack;Lnet/minecraft/screen/slot/Slot;Lnet/minecraft/util/ClickType;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/inventory/CommandItemSlot;)Z
      • postHit

        public void postHit​(LivingEntity target,
                            PlayerEntity attacker)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lasy;Lbjf;)V
        intermediary method_7979 Lnet/minecraft/class_1799;method_7979(Lnet/minecraft/class_1309;Lnet/minecraft/class_1657;)V
        named postHit Lnet/minecraft/item/ItemStack;postHit(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/player/PlayerEntity;)V
      • postMine

        public void postMine​(World world,
                             BlockState state,
                             BlockPos pos,
                             PlayerEntity miner)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbvr;Lcjr;Lgb;Lbjf;)V
        intermediary method_7952 Lnet/minecraft/class_1799;method_7952(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;)V
        named postMine Lnet/minecraft/item/ItemStack;postMine(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;)V
      • isSuitableFor

        public boolean isSuitableFor​(BlockState state)
        Determines whether this item can be used as a suitable tool for mining the specified block.

        Depending on block implementation, when combined together, the correct item and block may achieve a better mining speed and yield drops that would not be obtained when mining otherwise.

        返回:
        values consistent with calls to Item.isSuitableFor(net.minecraft.block.BlockState)
        另请参阅:
        Item.isSuitableFor(BlockState)
        Mappings:
        Namespace Name Mixin selector
        official b Lbpr;b(Lcjr;)Z
        intermediary method_7951 Lnet/minecraft/class_1799;method_7951(Lnet/minecraft/class_2680;)Z
        named isSuitableFor Lnet/minecraft/item/ItemStack;isSuitableFor(Lnet/minecraft/block/BlockState;)Z
      • useOnEntity

        public ActionResult useOnEntity​(PlayerEntity user,
                                        LivingEntity entity,
                                        Hand hand)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbjf;Lasy;Larf;)Larg;
        intermediary method_7920 Lnet/minecraft/class_1799;method_7920(Lnet/minecraft/class_1657;Lnet/minecraft/class_1309;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
        named useOnEntity Lnet/minecraft/item/ItemStack;useOnEntity(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
      • copy

        public ItemStack copy()
        Mappings:
        Namespace Name Mixin selector
        official m Lbpr;m()Lbpr;
        intermediary method_7972 Lnet/minecraft/class_1799;method_7972()Lnet/minecraft/class_1799;
        named copy Lnet/minecraft/item/ItemStack;copy()Lnet/minecraft/item/ItemStack;
      • areTagsEqual

        public static boolean areTagsEqual​(ItemStack left,
                                           ItemStack right)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbpr;Lbpr;)Z
        intermediary method_7975 Lnet/minecraft/class_1799;method_7975(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
        named areTagsEqual Lnet/minecraft/item/ItemStack;areTagsEqual(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
      • areEqual

        public static boolean areEqual​(ItemStack left,
                                       ItemStack right)
        Mappings:
        Namespace Name Mixin selector
        official b Lbpr;b(Lbpr;Lbpr;)Z
        intermediary method_7973 Lnet/minecraft/class_1799;method_7973(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
        named areEqual Lnet/minecraft/item/ItemStack;areEqual(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
      • isEqual

        private boolean isEqual​(ItemStack stack)
        Mappings:
        Namespace Name Mixin selector
        official c Lbpr;c(Lbpr;)Z
        intermediary method_7968 Lnet/minecraft/class_1799;method_7968(Lnet/minecraft/class_1799;)Z
        named isEqual Lnet/minecraft/item/ItemStack;isEqual(Lnet/minecraft/item/ItemStack;)Z
      • areItemsEqualIgnoreDamage

        public static boolean areItemsEqualIgnoreDamage​(ItemStack left,
                                                        ItemStack right)
        Mappings:
        Namespace Name Mixin selector
        official c Lbpr;c(Lbpr;Lbpr;)Z
        intermediary method_7984 Lnet/minecraft/class_1799;method_7984(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
        named areItemsEqualIgnoreDamage Lnet/minecraft/item/ItemStack;areItemsEqualIgnoreDamage(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
      • areItemsEqual

        public static boolean areItemsEqual​(ItemStack left,
                                            ItemStack right)
        Mappings:
        Namespace Name Mixin selector
        official d Lbpr;d(Lbpr;Lbpr;)Z
        intermediary method_7987 Lnet/minecraft/class_1799;method_7987(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
        named areItemsEqual Lnet/minecraft/item/ItemStack;areItemsEqual(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
      • isItemEqualIgnoreDamage

        public boolean isItemEqualIgnoreDamage​(ItemStack stack)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbpr;)Z
        intermediary method_7962 Lnet/minecraft/class_1799;method_7962(Lnet/minecraft/class_1799;)Z
        named isItemEqualIgnoreDamage Lnet/minecraft/item/ItemStack;isItemEqualIgnoreDamage(Lnet/minecraft/item/ItemStack;)Z
      • isItemEqual

        public boolean isItemEqual​(ItemStack stack)
        Mappings:
        Namespace Name Mixin selector
        official b Lbpr;b(Lbpr;)Z
        intermediary method_7929 Lnet/minecraft/class_1799;method_7929(Lnet/minecraft/class_1799;)Z
        named isItemEqual Lnet/minecraft/item/ItemStack;isItemEqual(Lnet/minecraft/item/ItemStack;)Z
      • canCombine

        public static boolean canCombine​(ItemStack stack,
                                         ItemStack otherStack)
        Mappings:
        Namespace Name Mixin selector
        official e Lbpr;e(Lbpr;Lbpr;)Z
        intermediary method_31577 Lnet/minecraft/class_1799;method_31577(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
        named canCombine Lnet/minecraft/item/ItemStack;canCombine(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
      • getTranslationKey

        public String getTranslationKey()
        Mappings:
        Namespace Name Mixin selector
        official n Lbpr;n()Ljava/lang/String;
        intermediary method_7922 Lnet/minecraft/class_1799;method_7922()Ljava/lang/String;
        named getTranslationKey Lnet/minecraft/item/ItemStack;getTranslationKey()Ljava/lang/String;
      • toString

        public String toString()
        覆盖:
        toString 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official toString Lbpr;toString()Ljava/lang/String;
        intermediary toString Lnet/minecraft/class_1799;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 Lbpr;a(Lbvr;Lasl;IZ)V
        intermediary method_7917 Lnet/minecraft/class_1799;method_7917(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;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 Lbpr;a(Lbvr;Lbjf;I)V
        intermediary method_7982 Lnet/minecraft/class_1799;method_7982(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;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 o Lbpr;o()I
        intermediary method_7935 Lnet/minecraft/class_1799;method_7935()I
        named getMaxUseTime Lnet/minecraft/item/ItemStack;getMaxUseTime()I
      • getUseAction

        public UseAction getUseAction()
        Mappings:
        Namespace Name Mixin selector
        official p Lbpr;p()Lbrg;
        intermediary method_7976 Lnet/minecraft/class_1799;method_7976()Lnet/minecraft/class_1839;
        named getUseAction Lnet/minecraft/item/ItemStack;getUseAction()Lnet/minecraft/util/UseAction;
      • onStoppedUsing

        public void onStoppedUsing​(World world,
                                   LivingEntity user,
                                   int remainingUseTicks)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbvr;Lasy;I)V
        intermediary method_7930 Lnet/minecraft/class_1799;method_7930(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;I)V
        named onStoppedUsing Lnet/minecraft/item/ItemStack;onStoppedUsing(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;I)V
      • isUsedOnRelease

        public boolean isUsedOnRelease()
        Mappings:
        Namespace Name Mixin selector
        official q Lbpr;q()Z
        intermediary method_7967 Lnet/minecraft/class_1799;method_7967()Z
        named isUsedOnRelease Lnet/minecraft/item/ItemStack;isUsedOnRelease()Z
      • hasTag

        public boolean hasTag()
        Mappings:
        Namespace Name Mixin selector
        official r Lbpr;r()Z
        intermediary method_7985 Lnet/minecraft/class_1799;method_7985()Z
        named hasTag Lnet/minecraft/item/ItemStack;hasTag()Z
      • getTag

        @Nullable
        public @Nullable CompoundTag getTag()
        Mappings:
        Namespace Name Mixin selector
        official s Lbpr;s()Lmv;
        intermediary method_7969 Lnet/minecraft/class_1799;method_7969()Lnet/minecraft/class_2487;
        named getTag Lnet/minecraft/item/ItemStack;getTag()Lnet/minecraft/nbt/CompoundTag;
      • getOrCreateTag

        public CompoundTag getOrCreateTag()
        Mappings:
        Namespace Name Mixin selector
        official t Lbpr;t()Lmv;
        intermediary method_7948 Lnet/minecraft/class_1799;method_7948()Lnet/minecraft/class_2487;
        named getOrCreateTag Lnet/minecraft/item/ItemStack;getOrCreateTag()Lnet/minecraft/nbt/CompoundTag;
      • getOrCreateSubTag

        public CompoundTag getOrCreateSubTag​(String key)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Ljava/lang/String;)Lmv;
        intermediary method_7911 Lnet/minecraft/class_1799;method_7911(Ljava/lang/String;)Lnet/minecraft/class_2487;
        named getOrCreateSubTag Lnet/minecraft/item/ItemStack;getOrCreateSubTag(Ljava/lang/String;)Lnet/minecraft/nbt/CompoundTag;
      • getSubTag

        @Nullable
        public @Nullable CompoundTag getSubTag​(String key)
        Mappings:
        Namespace Name Mixin selector
        official b Lbpr;b(Ljava/lang/String;)Lmv;
        intermediary method_7941 Lnet/minecraft/class_1799;method_7941(Ljava/lang/String;)Lnet/minecraft/class_2487;
        named getSubTag Lnet/minecraft/item/ItemStack;getSubTag(Ljava/lang/String;)Lnet/minecraft/nbt/CompoundTag;
      • removeSubTag

        public void removeSubTag​(String key)
        Mappings:
        Namespace Name Mixin selector
        official c Lbpr;c(Ljava/lang/String;)V
        intermediary method_7983 Lnet/minecraft/class_1799;method_7983(Ljava/lang/String;)V
        named removeSubTag Lnet/minecraft/item/ItemStack;removeSubTag(Ljava/lang/String;)V
      • getEnchantments

        public ListTag getEnchantments()
        Mappings:
        Namespace Name Mixin selector
        official u Lbpr;u()Lnb;
        intermediary method_7921 Lnet/minecraft/class_1799;method_7921()Lnet/minecraft/class_2499;
        named getEnchantments Lnet/minecraft/item/ItemStack;getEnchantments()Lnet/minecraft/nbt/ListTag;
      • setTag

        public void setTag​(@Nullable
                           @Nullable CompoundTag tag)
        Mappings:
        Namespace Name Mixin selector
        official c Lbpr;c(Lmv;)V
        intermediary method_7980 Lnet/minecraft/class_1799;method_7980(Lnet/minecraft/class_2487;)V
        named setTag Lnet/minecraft/item/ItemStack;setTag(Lnet/minecraft/nbt/CompoundTag;)V
      • getName

        public Text getName()
        Mappings:
        Namespace Name Mixin selector
        official v Lbpr;v()Lon;
        intermediary method_7964 Lnet/minecraft/class_1799;method_7964()Lnet/minecraft/class_2561;
        named getName Lnet/minecraft/item/ItemStack;getName()Lnet/minecraft/text/Text;
      • setCustomName

        public ItemStack setCustomName​(@Nullable
                                       @Nullable Text name)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lon;)Lbpr;
        intermediary method_7977 Lnet/minecraft/class_1799;method_7977(Lnet/minecraft/class_2561;)Lnet/minecraft/class_1799;
        named setCustomName Lnet/minecraft/item/ItemStack;setCustomName(Lnet/minecraft/text/Text;)Lnet/minecraft/item/ItemStack;
      • removeCustomName

        public void removeCustomName()
        Mappings:
        Namespace Name Mixin selector
        official w Lbpr;w()V
        intermediary method_7925 Lnet/minecraft/class_1799;method_7925()V
        named removeCustomName Lnet/minecraft/item/ItemStack;removeCustomName()V
      • hasCustomName

        public boolean hasCustomName()
        Mappings:
        Namespace Name Mixin selector
        official x Lbpr;x()Z
        intermediary method_7938 Lnet/minecraft/class_1799;method_7938()Z
        named hasCustomName Lnet/minecraft/item/ItemStack;hasCustomName()Z
      • getTooltip

        public List<Text> getTooltip​(@Nullable
                                     @Nullable PlayerEntity player,
                                     TooltipContext context)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbjf;Lbre;)Ljava/util/List;
        intermediary method_7950 Lnet/minecraft/class_1799;method_7950(Lnet/minecraft/class_1657;Lnet/minecraft/class_1836;)Ljava/util/List;
        named getTooltip Lnet/minecraft/item/ItemStack;getTooltip(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/client/item/TooltipContext;)Ljava/util/List;
      • isSectionVisible

        private static boolean isSectionVisible​(int flags,
                                                ItemStack.TooltipSection tooltipSection)
        Determines whether the given tooltip section will be visible according to the given flags.
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(ILbpr$a;)Z
        intermediary method_30267 Lnet/minecraft/class_1799;method_30267(ILnet/minecraft/class_1799$class_5422;)Z
        named isSectionVisible Lnet/minecraft/item/ItemStack;isSectionVisible(ILnet/minecraft/item/ItemStack$TooltipSection;)Z
      • getHideFlags

        private int getHideFlags()
        Mappings:
        Namespace Name Mixin selector
        official O Lbpr;O()I
        intermediary method_30266 Lnet/minecraft/class_1799;method_30266()I
        named getHideFlags Lnet/minecraft/item/ItemStack;getHideFlags()I
      • addHideFlag

        public void addHideFlag​(ItemStack.TooltipSection tooltipSection)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbpr$a;)V
        intermediary method_30268 Lnet/minecraft/class_1799;method_30268(Lnet/minecraft/class_1799$class_5422;)V
        named addHideFlag Lnet/minecraft/item/ItemStack;addHideFlag(Lnet/minecraft/item/ItemStack$TooltipSection;)V
      • appendEnchantments

        public static void appendEnchantments​(List<Text> tooltip,
                                              ListTag enchantments)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Ljava/util/List;Lnb;)V
        intermediary method_17870 Lnet/minecraft/class_1799;method_17870(Ljava/util/List;Lnet/minecraft/class_2499;)V
        named appendEnchantments Lnet/minecraft/item/ItemStack;appendEnchantments(Ljava/util/List;Lnet/minecraft/nbt/ListTag;)V
      • parseBlockTag

        private static Collection<Text> parseBlockTag​(String tag)
        Mappings:
        Namespace Name Mixin selector
        official d Lbpr;d(Ljava/lang/String;)Ljava/util/Collection;
        intermediary method_7937 Lnet/minecraft/class_1799;method_7937(Ljava/lang/String;)Ljava/util/Collection;
        named parseBlockTag Lnet/minecraft/item/ItemStack;parseBlockTag(Ljava/lang/String;)Ljava/util/Collection;
      • hasGlint

        public boolean hasGlint()
        Mappings:
        Namespace Name Mixin selector
        official y Lbpr;y()Z
        intermediary method_7958 Lnet/minecraft/class_1799;method_7958()Z
        named hasGlint Lnet/minecraft/item/ItemStack;hasGlint()Z
      • getRarity

        public Rarity getRarity()
        Mappings:
        Namespace Name Mixin selector
        official z Lbpr;z()Lbqg;
        intermediary method_7932 Lnet/minecraft/class_1799;method_7932()Lnet/minecraft/class_1814;
        named getRarity Lnet/minecraft/item/ItemStack;getRarity()Lnet/minecraft/util/Rarity;
      • isEnchantable

        public boolean isEnchantable()
        Mappings:
        Namespace Name Mixin selector
        official A Lbpr;A()Z
        intermediary method_7923 Lnet/minecraft/class_1799;method_7923()Z
        named isEnchantable Lnet/minecraft/item/ItemStack;isEnchantable()Z
      • addEnchantment

        public void addEnchantment​(Enchantment enchantment,
                                   int level)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbtl;I)V
        intermediary method_7978 Lnet/minecraft/class_1799;method_7978(Lnet/minecraft/class_1887;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 B Lbpr;B()Z
        intermediary method_7942 Lnet/minecraft/class_1799;method_7942()Z
        named hasEnchantments Lnet/minecraft/item/ItemStack;hasEnchantments()Z
      • putSubTag

        public void putSubTag​(String key,
                              Tag tag)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Ljava/lang/String;Lnn;)V
        intermediary method_7959 Lnet/minecraft/class_1799;method_7959(Ljava/lang/String;Lnet/minecraft/class_2520;)V
        named putSubTag Lnet/minecraft/item/ItemStack;putSubTag(Ljava/lang/String;Lnet/minecraft/nbt/Tag;)V
      • isInFrame

        public boolean isInFrame()
        Mappings:
        Namespace Name Mixin selector
        official C Lbpr;C()Z
        intermediary method_7961 Lnet/minecraft/class_1799;method_7961()Z
        named isInFrame Lnet/minecraft/item/ItemStack;isInFrame()Z
      • setHolder

        public void setHolder​(@Nullable
                              @Nullable Entity holder)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lasl;)V
        intermediary method_27320 Lnet/minecraft/class_1799;method_27320(Lnet/minecraft/class_1297;)V
        named setHolder Lnet/minecraft/item/ItemStack;setHolder(Lnet/minecraft/entity/Entity;)V
      • getFrame

        @Nullable
        public @Nullable ItemFrameEntity getFrame()
        Mappings:
        Namespace Name Mixin selector
        official D Lbpr;D()Lbfy;
        intermediary method_7945 Lnet/minecraft/class_1799;method_7945()Lnet/minecraft/class_1533;
        named getFrame Lnet/minecraft/item/ItemStack;getFrame()Lnet/minecraft/entity/decoration/ItemFrameEntity;
      • getHolder

        @Nullable
        public @Nullable Entity getHolder()
        Mappings:
        Namespace Name Mixin selector
        official E Lbpr;E()Lasl;
        intermediary method_27319 Lnet/minecraft/class_1799;method_27319()Lnet/minecraft/class_1297;
        named getHolder Lnet/minecraft/item/ItemStack;getHolder()Lnet/minecraft/entity/Entity;
      • getRepairCost

        public int getRepairCost()
        Mappings:
        Namespace Name Mixin selector
        official F Lbpr;F()I
        intermediary method_7928 Lnet/minecraft/class_1799;method_7928()I
        named getRepairCost Lnet/minecraft/item/ItemStack;getRepairCost()I
      • setRepairCost

        public void setRepairCost​(int repairCost)
        Mappings:
        Namespace Name Mixin selector
        official c Lbpr;c(I)V
        intermediary method_7927 Lnet/minecraft/class_1799;method_7927(I)V
        named setRepairCost Lnet/minecraft/item/ItemStack;setRepairCost(I)V
      • getAttributeModifiers

        public Multimap<EntityAttribute,​EntityAttributeModifier> getAttributeModifiers​(EquipmentSlot slot)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lasq;)Lcom/google/common/collect/Multimap;
        intermediary method_7926 Lnet/minecraft/class_1799;method_7926(Lnet/minecraft/class_1304;)Lcom/google/common/collect/Multimap;
        named getAttributeModifiers Lnet/minecraft/item/ItemStack;getAttributeModifiers(Lnet/minecraft/entity/EquipmentSlot;)Lcom/google/common/collect/Multimap;
      • addAttributeModifier

        public void addAttributeModifier​(EntityAttribute attribute,
                                         EntityAttributeModifier modifier,
                                         @Nullable
                                         @Nullable EquipmentSlot slot)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Latt;Latw;Lasq;)V
        intermediary method_7916 Lnet/minecraft/class_1799;method_7916(Lnet/minecraft/class_1320;Lnet/minecraft/class_1322;Lnet/minecraft/class_1304;)V
        named addAttributeModifier Lnet/minecraft/item/ItemStack;addAttributeModifier(Lnet/minecraft/entity/attribute/EntityAttribute;Lnet/minecraft/entity/attribute/EntityAttributeModifier;Lnet/minecraft/entity/EquipmentSlot;)V
      • toHoverableText

        public Text toHoverableText()
        Mappings:
        Namespace Name Mixin selector
        official G Lbpr;G()Lon;
        intermediary method_7954 Lnet/minecraft/class_1799;method_7954()Lnet/minecraft/class_2561;
        named toHoverableText Lnet/minecraft/item/ItemStack;toHoverableText()Lnet/minecraft/text/Text;
      • areBlocksEqual

        private static boolean areBlocksEqual​(CachedBlockPosition first,
                                              @Nullable
                                              @Nullable CachedBlockPosition second)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lcjv;Lcjv;)Z
        intermediary method_7918 Lnet/minecraft/class_1799;method_7918(Lnet/minecraft/class_2694;Lnet/minecraft/class_2694;)Z
        named areBlocksEqual Lnet/minecraft/item/ItemStack;areBlocksEqual(Lnet/minecraft/block/pattern/CachedBlockPosition;Lnet/minecraft/block/pattern/CachedBlockPosition;)Z
      • canDestroy

        public boolean canDestroy​(TagManager tagManager,
                                  CachedBlockPosition pos)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lafu;Lcjv;)Z
        intermediary method_7940 Lnet/minecraft/class_1799;method_7940(Lnet/minecraft/class_5415;Lnet/minecraft/class_2694;)Z
        named canDestroy Lnet/minecraft/item/ItemStack;canDestroy(Lnet/minecraft/tag/TagManager;Lnet/minecraft/block/pattern/CachedBlockPosition;)Z
      • canPlaceOn

        public boolean canPlaceOn​(TagManager tagManager,
                                  CachedBlockPosition pos)
        Mappings:
        Namespace Name Mixin selector
        official b Lbpr;b(Lafu;Lcjv;)Z
        intermediary method_7944 Lnet/minecraft/class_1799;method_7944(Lnet/minecraft/class_5415;Lnet/minecraft/class_2694;)Z
        named canPlaceOn Lnet/minecraft/item/ItemStack;canPlaceOn(Lnet/minecraft/tag/TagManager;Lnet/minecraft/block/pattern/CachedBlockPosition;)Z
      • getCooldown

        public int getCooldown()
        Mappings:
        Namespace Name Mixin selector
        official H Lbpr;H()I
        intermediary method_7965 Lnet/minecraft/class_1799;method_7965()I
        named getCooldown Lnet/minecraft/item/ItemStack;getCooldown()I
      • setCooldown

        public void setCooldown​(int cooldown)
        Mappings:
        Namespace Name Mixin selector
        official d Lbpr;d(I)V
        intermediary method_7912 Lnet/minecraft/class_1799;method_7912(I)V
        named setCooldown Lnet/minecraft/item/ItemStack;setCooldown(I)V
      • getCount

        public int getCount()
        Mappings:
        Namespace Name Mixin selector
        official I Lbpr;I()I
        intermediary method_7947 Lnet/minecraft/class_1799;method_7947()I
        named getCount Lnet/minecraft/item/ItemStack;getCount()I
      • setCount

        public void setCount​(int count)
        Mappings:
        Namespace Name Mixin selector
        official e Lbpr;e(I)V
        intermediary method_7939 Lnet/minecraft/class_1799;method_7939(I)V
        named setCount Lnet/minecraft/item/ItemStack;setCount(I)V
      • increment

        public void increment​(int amount)
        Mappings:
        Namespace Name Mixin selector
        official f Lbpr;f(I)V
        intermediary method_7933 Lnet/minecraft/class_1799;method_7933(I)V
        named increment Lnet/minecraft/item/ItemStack;increment(I)V
      • decrement

        public void decrement​(int amount)
        Mappings:
        Namespace Name Mixin selector
        official g Lbpr;g(I)V
        intermediary method_7934 Lnet/minecraft/class_1799;method_7934(I)V
        named decrement Lnet/minecraft/item/ItemStack;decrement(I)V
      • usageTick

        public void usageTick​(World world,
                              LivingEntity user,
                              int remainingUseTicks)
        Mappings:
        Namespace Name Mixin selector
        official b Lbpr;b(Lbvr;Lasy;I)V
        intermediary method_7949 Lnet/minecraft/class_1799;method_7949(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;I)V
        named usageTick Lnet/minecraft/item/ItemStack;usageTick(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;I)V
      • onItemEntityDestroyed

        public void onItemEntityDestroyed​(ItemEntity entity)
        Mappings:
        Namespace Name Mixin selector
        official a Lbpr;a(Lbge;)V
        intermediary method_33262 Lnet/minecraft/class_1799;method_33262(Lnet/minecraft/class_1542;)V
        named onItemEntityDestroyed Lnet/minecraft/item/ItemStack;onItemEntityDestroyed(Lnet/minecraft/entity/ItemEntity;)V
      • isFood

        public boolean isFood()
        Mappings:
        Namespace Name Mixin selector
        official J Lbpr;J()Z
        intermediary method_19267 Lnet/minecraft/class_1799;method_19267()Z
        named isFood Lnet/minecraft/item/ItemStack;isFood()Z
      • getDrinkSound

        public SoundEvent getDrinkSound()
        Mappings:
        Namespace Name Mixin selector
        official K Lbpr;K()Laev;
        intermediary method_21832 Lnet/minecraft/class_1799;method_21832()Lnet/minecraft/class_3414;
        named getDrinkSound Lnet/minecraft/item/ItemStack;getDrinkSound()Lnet/minecraft/sound/SoundEvent;
      • getEatSound

        public SoundEvent getEatSound()
        Mappings:
        Namespace Name Mixin selector
        official L Lbpr;L()Laev;
        intermediary method_21833 Lnet/minecraft/class_1799;method_21833()Lnet/minecraft/class_3414;
        named getEatSound Lnet/minecraft/item/ItemStack;getEatSound()Lnet/minecraft/sound/SoundEvent;
      • getEquipSound

        @Nullable
        public @Nullable SoundEvent getEquipSound()
        Mappings:
        Namespace Name Mixin selector
        official M Lbpr;M()Laev;
        intermediary method_31572 Lnet/minecraft/class_1799;method_31572()Lnet/minecraft/class_3414;
        named getEquipSound Lnet/minecraft/item/ItemStack;getEquipSound()Lnet/minecraft/sound/SoundEvent;