Class PlayerInventory

java.lang.Object
net.minecraft.entity.player.PlayerInventory
All Implemented Interfaces:
Inventory, Nameable

public class PlayerInventory extends Object implements Inventory
Mappings:
Namespace Name
official aax
intermediary net/minecraft/class_987
named net/minecraft/entity/player/PlayerInventory
  • Field Details

    • field_15082

      public final DefaultedList<ItemStack> field_15082
      Mappings:
      Namespace Name Mixin selector
      official a Laax;a:Ldd;
      intermediary field_15082 Lnet/minecraft/class_987;field_15082:Lnet/minecraft/class_3114;
      named field_15082 Lnet/minecraft/entity/player/PlayerInventory;field_15082:Lnet/minecraft/util/collection/DefaultedList;
    • field_15083

      public final DefaultedList<ItemStack> field_15083
      Mappings:
      Namespace Name Mixin selector
      official b Laax;b:Ldd;
      intermediary field_15083 Lnet/minecraft/class_987;field_15083:Lnet/minecraft/class_3114;
      named field_15083 Lnet/minecraft/entity/player/PlayerInventory;field_15083:Lnet/minecraft/util/collection/DefaultedList;
    • field_15084

      public final DefaultedList<ItemStack> field_15084
      Mappings:
      Namespace Name Mixin selector
      official c Laax;c:Ldd;
      intermediary field_15084 Lnet/minecraft/class_987;field_15084:Lnet/minecraft/class_3114;
      named field_15084 Lnet/minecraft/entity/player/PlayerInventory;field_15084:Lnet/minecraft/util/collection/DefaultedList;
    • field_15085

      private final List<DefaultedList<ItemStack>> field_15085
      Mappings:
      Namespace Name Mixin selector
      official g Laax;g:Ljava/util/List;
      intermediary field_15085 Lnet/minecraft/class_987;field_15085:Ljava/util/List;
      named field_15085 Lnet/minecraft/entity/player/PlayerInventory;field_15085:Ljava/util/List;
    • selectedSlot

      public int selectedSlot
      Mappings:
      Namespace Name Mixin selector
      official d Laax;d:I
      intermediary field_3966 Lnet/minecraft/class_987;field_3966:I
      named selectedSlot Lnet/minecraft/entity/player/PlayerInventory;selectedSlot:I
    • player

      public PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      official e Laax;e:Laay;
      intermediary field_3967 Lnet/minecraft/class_987;field_3967:Lnet/minecraft/class_988;
      named player Lnet/minecraft/entity/player/PlayerInventory;player:Lnet/minecraft/entity/player/PlayerEntity;
    • cursorStack

      private ItemStack cursorStack
      Mappings:
      Namespace Name Mixin selector
      official h Laax;h:Lafj;
      intermediary field_3970 Lnet/minecraft/class_987;field_3970:Lnet/minecraft/class_1071;
      named cursorStack Lnet/minecraft/entity/player/PlayerInventory;cursorStack:Lnet/minecraft/item/ItemStack;
    • dirty

      public boolean dirty
      Mappings:
      Namespace Name Mixin selector
      official f Laax;f:Z
      intermediary field_3968 Lnet/minecraft/class_987;field_3968:Z
      named dirty Lnet/minecraft/entity/player/PlayerInventory;dirty:Z
  • Constructor Details

    • PlayerInventory

      public PlayerInventory(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laax;<init>(Laay;)V
      intermediary <init> Lnet/minecraft/class_987;<init>(Lnet/minecraft/class_988;)V
      named <init> Lnet/minecraft/entity/player/PlayerInventory;<init>(Lnet/minecraft/entity/player/PlayerEntity;)V
  • Method Details

    • getMainHandStack

      public ItemStack getMainHandStack()
      Mappings:
      Namespace Name Mixin selector
      official i Laax;i()Lafj;
      intermediary method_3142 Lnet/minecraft/class_987;method_3142()Lnet/minecraft/class_1071;
      named getMainHandStack Lnet/minecraft/entity/player/PlayerInventory;getMainHandStack()Lnet/minecraft/item/ItemStack;
    • getHotbarSize

      public static int getHotbarSize()
      Mappings:
      Namespace Name Mixin selector
      official j Laax;j()I
      intermediary method_3144 Lnet/minecraft/class_987;method_3144()I
      named getHotbarSize Lnet/minecraft/entity/player/PlayerInventory;getHotbarSize()I
    • method_13251

      private boolean method_13251(ItemStack itemStack, ItemStack itemStack2)
      Mappings:
      Namespace Name Mixin selector
      official a Laax;a(Lafj;Lafj;)Z
      intermediary method_13251 Lnet/minecraft/class_987;method_13251(Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;)Z
      named method_13251 Lnet/minecraft/entity/player/PlayerInventory;method_13251(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
    • method_13254

      private boolean method_13254(ItemStack itemStack, ItemStack itemStack2)
      Mappings:
      Namespace Name Mixin selector
      official b Laax;b(Lafj;Lafj;)Z
      intermediary method_13254 Lnet/minecraft/class_987;method_13254(Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;)Z
      named method_13254 Lnet/minecraft/entity/player/PlayerInventory;method_13254(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
    • method_3146

      public int method_3146()
      Mappings:
      Namespace Name Mixin selector
      official k Laax;k()I
      intermediary method_3146 Lnet/minecraft/class_987;method_3146()I
      named method_3146 Lnet/minecraft/entity/player/PlayerInventory;method_3146()I
    • method_13250

      @Environment(CLIENT) public void method_13250(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Laax;a(Lafj;)V
      intermediary method_13250 Lnet/minecraft/class_987;method_13250(Lnet/minecraft/class_1071;)V
      named method_13250 Lnet/minecraft/entity/player/PlayerInventory;method_13250(Lnet/minecraft/item/ItemStack;)V
    • method_13256

      public void method_13256(int int2)
      Mappings:
      Namespace Name Mixin selector
      official d Laax;d(I)V
      intermediary method_13256 Lnet/minecraft/class_987;method_13256(I)V
      named method_13256 Lnet/minecraft/entity/player/PlayerInventory;method_13256(I)V
    • method_13258

      public static boolean method_13258(int int2)
      Mappings:
      Namespace Name Mixin selector
      official e Laax;e(I)Z
      intermediary method_13258 Lnet/minecraft/class_987;method_13258(I)Z
      named method_13258 Lnet/minecraft/entity/player/PlayerInventory;method_13258(I)Z
    • method_13253

      @Environment(CLIENT) public int method_13253(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official b Laax;b(Lafj;)I
      intermediary method_13253 Lnet/minecraft/class_987;method_13253(Lnet/minecraft/class_1071;)I
      named method_13253 Lnet/minecraft/entity/player/PlayerInventory;method_13253(Lnet/minecraft/item/ItemStack;)I
    • method_13259

      public int method_13259()
      Mappings:
      Namespace Name Mixin selector
      official l Laax;l()I
      intermediary method_13259 Lnet/minecraft/class_987;method_13259()I
      named method_13259 Lnet/minecraft/entity/player/PlayerInventory;method_13259()I
    • method_3134

      @Environment(CLIENT) public void method_3134(int int2)
      Mappings:
      Namespace Name Mixin selector
      official f Laax;f(I)V
      intermediary method_3134 Lnet/minecraft/class_987;method_3134(I)V
      named method_3134 Lnet/minecraft/entity/player/PlayerInventory;method_3134(I)V
    • method_11232

      public int method_11232(@Nullable Item item, int int2, int int3, @Nullable NbtCompound nbtCompound)
      Mappings:
      Namespace Name Mixin selector
      official a Laax;a(Lafh;IILdu;)I
      intermediary method_11232 Lnet/minecraft/class_987;method_11232(Lnet/minecraft/class_1069;IILnet/minecraft/class_322;)I
      named method_11232 Lnet/minecraft/entity/player/PlayerInventory;method_11232(Lnet/minecraft/item/Item;IILnet/minecraft/nbt/NbtCompound;)I
    • method_3140

      private int method_3140(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official g Laax;g(Lafj;)I
      intermediary method_3140 Lnet/minecraft/class_987;method_3140(Lnet/minecraft/class_1071;)I
      named method_3140 Lnet/minecraft/entity/player/PlayerInventory;method_3140(Lnet/minecraft/item/ItemStack;)I
    • method_3138

      private int method_3138(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official h Laax;h(Lafj;)I
      intermediary method_3138 Lnet/minecraft/class_987;method_3138(Lnet/minecraft/class_1071;)I
      named method_3138 Lnet/minecraft/entity/player/PlayerInventory;method_3138(Lnet/minecraft/item/ItemStack;)I
    • updateItems

      public void updateItems()
      Mappings:
      Namespace Name Mixin selector
      official n Laax;n()V
      intermediary method_3147 Lnet/minecraft/class_987;method_3147()V
      named updateItems Lnet/minecraft/entity/player/PlayerInventory;updateItems()V
    • insertStack

      public boolean insertStack(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official c Laax;c(Lafj;)Z
      intermediary method_3129 Lnet/minecraft/class_987;method_3129(Lnet/minecraft/class_1071;)Z
      named insertStack Lnet/minecraft/entity/player/PlayerInventory;insertStack(Lnet/minecraft/item/ItemStack;)Z
    • takeInvStack

      public ItemStack takeInvStack(int slot, int amount)
      Specified by:
      takeInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(II)Lafj;
      intermediary method_2382 Lnet/minecraft/class_849;method_2382(II)Lnet/minecraft/class_1071;
      named takeInvStack Lnet/minecraft/inventory/Inventory;takeInvStack(II)Lnet/minecraft/item/ItemStack;
    • method_13257

      public void method_13257(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official d Laax;d(Lafj;)V
      intermediary method_13257 Lnet/minecraft/class_987;method_13257(Lnet/minecraft/class_1071;)V
      named method_13257 Lnet/minecraft/entity/player/PlayerInventory;method_13257(Lnet/minecraft/item/ItemStack;)V
    • removeInvStack

      public ItemStack removeInvStack(int slot)
      Specified by:
      removeInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Lrc;b(I)Lafj;
      intermediary method_2386 Lnet/minecraft/class_849;method_2386(I)Lnet/minecraft/class_1071;
      named removeInvStack Lnet/minecraft/inventory/Inventory;removeInvStack(I)Lnet/minecraft/item/ItemStack;
    • setInvStack

      public void setInvStack(int slot, ItemStack stack)
      Specified by:
      setInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(ILafj;)V
      intermediary method_2383 Lnet/minecraft/class_849;method_2383(ILnet/minecraft/class_1071;)V
      named setInvStack Lnet/minecraft/inventory/Inventory;setInvStack(ILnet/minecraft/item/ItemStack;)V
    • method_13252

      public float method_13252(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Laax;a(Latl;)F
      intermediary method_13252 Lnet/minecraft/class_987;method_13252(Lnet/minecraft/class_2232;)F
      named method_13252 Lnet/minecraft/entity/player/PlayerInventory;method_13252(Lnet/minecraft/block/BlockState;)F
    • serialize

      public NbtList serialize(NbtList nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Laax;a(Lea;)Lea;
      intermediary method_3126 Lnet/minecraft/class_987;method_3126(Lnet/minecraft/class_474;)Lnet/minecraft/class_474;
      named serialize Lnet/minecraft/entity/player/PlayerInventory;serialize(Lnet/minecraft/nbt/NbtList;)Lnet/minecraft/nbt/NbtList;
    • deserialize

      public void deserialize(NbtList nbtList)
      Mappings:
      Namespace Name Mixin selector
      official b Laax;b(Lea;)V
      intermediary method_3131 Lnet/minecraft/class_987;method_3131(Lnet/minecraft/class_474;)V
      named deserialize Lnet/minecraft/entity/player/PlayerInventory;deserialize(Lnet/minecraft/nbt/NbtList;)V
    • getInvSize

      public int getInvSize()
      Specified by:
      getInvSize in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official v_ Lrc;v_()I
      intermediary method_2388 Lnet/minecraft/class_849;method_2388()I
      named getInvSize Lnet/minecraft/inventory/Inventory;getInvSize()I
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official w_ Lrc;w_()Z
      intermediary method_13922 Lnet/minecraft/class_849;method_13922()Z
      named isEmpty Lnet/minecraft/inventory/Inventory;isEmpty()Z
    • getInvStack

      public ItemStack getInvStack(int slot)
      Specified by:
      getInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(I)Lafj;
      intermediary method_2381 Lnet/minecraft/class_849;method_2381(I)Lnet/minecraft/class_1071;
      named getInvStack Lnet/minecraft/inventory/Inventory;getInvStack(I)Lnet/minecraft/item/ItemStack;
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official h_ Lrp;h_()Ljava/lang/String;
      intermediary method_2518 Lnet/minecraft/class_2611;method_2518()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/text/Nameable;getTranslationKey()Ljava/lang/String;
    • hasCustomName

      public boolean hasCustomName()
      Specified by:
      hasCustomName in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official n_ Lrp;n_()Z
      intermediary method_5339 Lnet/minecraft/class_2611;method_5339()Z
      named hasCustomName Lnet/minecraft/text/Nameable;hasCustomName()Z
    • method_6344

      public Text method_6344()
      Specified by:
      method_6344 in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official i_ Lrp;i_()Lfb;
      intermediary method_6344 Lnet/minecraft/class_2611;method_6344()Lnet/minecraft/class_1982;
      named method_6344 Lnet/minecraft/text/Nameable;method_6344()Lnet/minecraft/text/Text;
    • getInvMaxStackAmount

      public int getInvMaxStackAmount()
      Specified by:
      getInvMaxStackAmount in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official y_ Lrc;y_()I
      intermediary method_2389 Lnet/minecraft/class_849;method_2389()I
      named getInvMaxStackAmount Lnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
    • method_13255

      public boolean method_13255(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official b Laax;b(Latl;)Z
      intermediary method_13255 Lnet/minecraft/class_987;method_13255(Lnet/minecraft/class_2232;)Z
      named method_13255 Lnet/minecraft/entity/player/PlayerInventory;method_13255(Lnet/minecraft/block/BlockState;)Z
    • getArmor

      @Environment(CLIENT) public ItemStack getArmor(int slot)
      Mappings:
      Namespace Name Mixin selector
      official g Laax;g(I)Lafj;
      intermediary method_3141 Lnet/minecraft/class_987;method_3141(I)Lnet/minecraft/class_1071;
      named getArmor Lnet/minecraft/entity/player/PlayerInventory;getArmor(I)Lnet/minecraft/item/ItemStack;
    • damageArmor

      public void damageArmor(float armor)
      Mappings:
      Namespace Name Mixin selector
      official a Laax;a(F)V
      intermediary method_6316 Lnet/minecraft/class_987;method_6316(F)V
      named damageArmor Lnet/minecraft/entity/player/PlayerInventory;damageArmor(F)V
    • dropAll

      public void dropAll()
      Mappings:
      Namespace Name Mixin selector
      official o Laax;o()V
      intermediary method_3149 Lnet/minecraft/class_987;method_3149()V
      named dropAll Lnet/minecraft/entity/player/PlayerInventory;dropAll()V
    • markDirty

      public void markDirty()
      Specified by:
      markDirty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official x_ Lrc;x_()V
      intermediary method_543 Lnet/minecraft/class_849;method_543()V
      named markDirty Lnet/minecraft/inventory/Inventory;markDirty()V
    • setCursorStack

      public void setCursorStack(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official e Laax;e(Lafj;)V
      intermediary method_3133 Lnet/minecraft/class_987;method_3133(Lnet/minecraft/class_1071;)V
      named setCursorStack Lnet/minecraft/entity/player/PlayerInventory;setCursorStack(Lnet/minecraft/item/ItemStack;)V
    • getCursorStack

      public ItemStack getCursorStack()
      Mappings:
      Namespace Name Mixin selector
      official p Laax;p()Lafj;
      intermediary method_3150 Lnet/minecraft/class_987;method_3150()Lnet/minecraft/class_1071;
      named getCursorStack Lnet/minecraft/entity/player/PlayerInventory;getCursorStack()Lnet/minecraft/item/ItemStack;
    • canPlayerUseInv

      public boolean canPlayerUseInv(PlayerEntity player)
      Specified by:
      canPlayerUseInv in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(Laay;)Z
      intermediary method_2384 Lnet/minecraft/class_849;method_2384(Lnet/minecraft/class_988;)Z
      named canPlayerUseInv Lnet/minecraft/inventory/Inventory;canPlayerUseInv(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • contains

      public boolean contains(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official f Laax;f(Lafj;)Z
      intermediary method_3136 Lnet/minecraft/class_987;method_3136(Lnet/minecraft/class_1071;)Z
      named contains Lnet/minecraft/entity/player/PlayerInventory;contains(Lnet/minecraft/item/ItemStack;)Z
    • onInvOpen

      public void onInvOpen(PlayerEntity player)
      Specified by:
      onInvOpen in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Lrc;b(Laay;)V
      intermediary method_10894 Lnet/minecraft/class_849;method_10894(Lnet/minecraft/class_988;)V
      named onInvOpen Lnet/minecraft/inventory/Inventory;onInvOpen(Lnet/minecraft/entity/player/PlayerEntity;)V
    • onInvClose

      public void onInvClose(PlayerEntity player)
      Specified by:
      onInvClose in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official c Lrc;c(Laay;)V
      intermediary method_10895 Lnet/minecraft/class_849;method_10895(Lnet/minecraft/class_988;)V
      named onInvClose Lnet/minecraft/inventory/Inventory;onInvClose(Lnet/minecraft/entity/player/PlayerEntity;)V
    • isValidInvStack

      public boolean isValidInvStack(int slot, ItemStack stack)
      Specified by:
      isValidInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Lrc;b(ILafj;)Z
      intermediary method_5338 Lnet/minecraft/class_849;method_5338(ILnet/minecraft/class_1071;)Z
      named isValidInvStack Lnet/minecraft/inventory/Inventory;isValidInvStack(ILnet/minecraft/item/ItemStack;)Z
    • copy

      public void copy(PlayerInventory inventory)
      Mappings:
      Namespace Name Mixin selector
      official a Laax;a(Laax;)V
      intermediary method_3132 Lnet/minecraft/class_987;method_3132(Lnet/minecraft/class_987;)V
      named copy Lnet/minecraft/entity/player/PlayerInventory;copy(Lnet/minecraft/entity/player/PlayerInventory;)V
    • getProperty

      public int getProperty(int key)
      Specified by:
      getProperty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official c_ Lrc;c_(I)I
      intermediary method_10892 Lnet/minecraft/class_849;method_10892(I)I
      named getProperty Lnet/minecraft/inventory/Inventory;getProperty(I)I
    • setProperty

      public void setProperty(int id, int value)
      Specified by:
      setProperty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Lrc;b(II)V
      intermediary method_10893 Lnet/minecraft/class_849;method_10893(II)V
      named setProperty Lnet/minecraft/inventory/Inventory;setProperty(II)V
    • getProperties

      public int getProperties()
      Specified by:
      getProperties in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official h Lrc;h()I
      intermediary method_10896 Lnet/minecraft/class_849;method_10896()I
      named getProperties Lnet/minecraft/inventory/Inventory;getProperties()I
    • clear

      public void clear()
      Specified by:
      clear in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official m Lrc;m()V
      intermediary method_10897 Lnet/minecraft/class_849;method_10897()V
      named clear Lnet/minecraft/inventory/Inventory;clear()V