Class PlayerInventory

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

public class PlayerInventory extends Object implements Inventory
Mappings:
Namespace Name
intermediary net/minecraft/class_136
glue class_223
server fx
client ix
named net/minecraft/entity/player/PlayerInventory
  • Field Details

    • main

      public ItemStack[] main
      Mappings:
      Namespace Name Mixin selector
      intermediary field_745 Lnet/minecraft/class_136;field_745:[Lnet/minecraft/class_31;
      glue field_938 Lclass_223;field_938:[Lclass_224;
      server a Lfx;a:[Lfy;
      client a Lix;a:[Liz;
      named main Lnet/minecraft/entity/player/PlayerInventory;main:[Lnet/minecraft/item/ItemStack;
    • armor

      public ItemStack[] armor
      Mappings:
      Namespace Name Mixin selector
      intermediary field_746 Lnet/minecraft/class_136;field_746:[Lnet/minecraft/class_31;
      glue field_939 Lclass_223;field_939:[Lclass_224;
      server b Lfx;b:[Lfy;
      client b Lix;b:[Liz;
      named armor Lnet/minecraft/entity/player/PlayerInventory;armor:[Lnet/minecraft/item/ItemStack;
    • selectedSlot

      public int selectedSlot
      Mappings:
      Namespace Name Mixin selector
      intermediary field_747 Lnet/minecraft/class_136;field_747:I
      glue field_940 Lclass_223;field_940:I
      server c Lfx;c:I
      client c Lix;c:I
      named selectedSlot Lnet/minecraft/entity/player/PlayerInventory;selectedSlot:I
    • player

      public PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      intermediary field_748 Lnet/minecraft/class_136;field_748:Lnet/minecraft/class_54;
      glue field_941 Lclass_223;field_941:Lclass_172;
      server d Lfx;d:Lem;
      client d Lix;d:Lgs;
      named player Lnet/minecraft/entity/player/PlayerInventory;player:Lnet/minecraft/entity/player/PlayerEntity;
    • cursorStack

      private ItemStack cursorStack
      Mappings:
      Namespace Name Mixin selector
      intermediary field_750 Lnet/minecraft/class_136;field_750:Lnet/minecraft/class_31;
      glue field_943 Lclass_223;field_943:Lclass_224;
      server f Lfx;f:Lfy;
      client f Lix;f:Liz;
      named cursorStack Lnet/minecraft/entity/player/PlayerInventory;cursorStack:Lnet/minecraft/item/ItemStack;
    • dirty

      public boolean dirty
      Mappings:
      Namespace Name Mixin selector
      intermediary field_749 Lnet/minecraft/class_136;field_749:Z
      glue field_942 Lclass_223;field_942:Z
      server e Lfx;e:Z
      client e Lix;e:Z
      named dirty Lnet/minecraft/entity/player/PlayerInventory;dirty:Z
  • Constructor Details

    • PlayerInventory

      public PlayerInventory(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_136;<init>(Lnet/minecraft/class_54;)V
      glue <init> Lclass_223;<init>(Lclass_172;)V
      server <init> Lfx;<init>(Lem;)V
      client <init> Lix;<init>(Lgs;)V
      named <init> Lnet/minecraft/entity/player/PlayerInventory;<init>(Lnet/minecraft/entity/player/PlayerEntity;)V
  • Method Details

    • getSelectedItem

      public ItemStack getSelectedItem()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_675 Lnet/minecraft/class_136;method_675()Lnet/minecraft/class_31;
      glue method_1041 Lclass_223;method_1041()Lclass_224;
      server b Lfx;b()Lfy;
      client b Lix;b()Liz;
      named getSelectedItem Lnet/minecraft/entity/player/PlayerInventory;getSelectedItem()Lnet/minecraft/item/ItemStack;
    • method_684

      @Environment(SERVER) public static int method_684()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_684 Lnet/minecraft/class_136;method_684()I
      glue method_1050 Lclass_223;method_1050()I
      server e Lfx;e()I
      client method_684 Lix;method_684()I
      named method_684 Lnet/minecraft/entity/player/PlayerInventory;method_684()I
    • method_682

      private int method_682(int int2)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_682 Lnet/minecraft/class_136;method_682(I)I
      glue method_1048 Lclass_223;method_1048(I)I
      server d Lfx;d(I)I
      client f Lix;f(I)I
      named method_682 Lnet/minecraft/entity/player/PlayerInventory;method_682(I)I
    • method_683

      private int method_683(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_683 Lnet/minecraft/class_136;method_683(Lnet/minecraft/class_31;)I
      glue method_1049 Lclass_223;method_1049(Lclass_224;)I
      server d Lfx;d(Lfy;)I
      client d Lix;d(Liz;)I
      named method_683 Lnet/minecraft/entity/player/PlayerInventory;method_683(Lnet/minecraft/item/ItemStack;)I
    • method_690

      private int method_690()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_690 Lnet/minecraft/class_136;method_690()I
      glue method_1057 Lclass_223;method_1057()I
      server k Lfx;k()I
      client j Lix;j()I
      named method_690 Lnet/minecraft/entity/player/PlayerInventory;method_690()I
    • method_691

      @Environment(CLIENT) public void method_691(int int2, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_691 Lnet/minecraft/class_136;method_691(IZ)V
      glue method_1401 Lclass_223;method_1401(IZ)V
      server method_691 Lfx;method_691(IZ)V
      client a Lix;a(IZ)V
      named method_691 Lnet/minecraft/entity/player/PlayerInventory;method_691(IZ)V
    • method_692

      @Environment(CLIENT) public void method_692(int int2)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_692 Lnet/minecraft/class_136;method_692(I)V
      glue method_1402 Lclass_223;method_1402(I)V
      server method_692 Lfx;method_692(I)V
      client b Lix;b(I)V
      named method_692 Lnet/minecraft/entity/player/PlayerInventory;method_692(I)V
    • method_685

      private int method_685(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_685 Lnet/minecraft/class_136;method_685(Lnet/minecraft/class_31;)I
      glue method_1051 Lclass_223;method_1051(Lclass_224;)I
      server e Lfx;e(Lfy;)I
      client e Lix;e(Liz;)I
      named method_685 Lnet/minecraft/entity/player/PlayerInventory;method_685(Lnet/minecraft/item/ItemStack;)I
    • method_686

      public void method_686()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_686 Lnet/minecraft/class_136;method_686()V
      glue method_1052 Lclass_223;method_1052()V
      server f Lfx;f()V
      client e Lix;e()V
      named method_686 Lnet/minecraft/entity/player/PlayerInventory;method_686()V
    • method_676

      public boolean method_676(int int2)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_676 Lnet/minecraft/class_136;method_676(I)Z
      glue method_1042 Lclass_223;method_1042(I)Z
      server b Lfx;b(I)Z
      client c Lix;c(I)Z
      named method_676 Lnet/minecraft/entity/player/PlayerInventory;method_676(I)Z
    • method_671

      public boolean method_671(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_671 Lnet/minecraft/class_136;method_671(Lnet/minecraft/class_31;)Z
      glue method_1037 Lclass_223;method_1037(Lclass_224;)Z
      server a Lfx;a(Lfy;)Z
      client a Lix;a(Liz;)Z
      named method_671 Lnet/minecraft/entity/player/PlayerInventory;method_671(Lnet/minecraft/item/ItemStack;)Z
    • removeStack

      public ItemStack removeStack(int slot, int amount)
      Specified by:
      removeStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      intermediary method_949 Lnet/minecraft/class_134;method_949(II)Lnet/minecraft/class_31;
      glue method_50 Lclass_287;method_50(II)Lclass_224;
      server a Lhp;a(II)Lfy;
      client a Llw;a(II)Liz;
      named removeStack Lnet/minecraft/inventory/Inventory;removeStack(II)Lnet/minecraft/item/ItemStack;
    • setStack

      public void setStack(int slot, ItemStack stack)
      Specified by:
      setStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      intermediary method_950 Lnet/minecraft/class_134;method_950(ILnet/minecraft/class_31;)V
      glue method_51 Lclass_287;method_51(ILclass_224;)V
      server a Lhp;a(ILfy;)V
      client a Llw;a(ILiz;)V
      named setStack Lnet/minecraft/inventory/Inventory;setStack(ILnet/minecraft/item/ItemStack;)V
    • method_674

      public float method_674(Block block)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_674 Lnet/minecraft/class_136;method_674(Lnet/minecraft/class_17;)F
      glue method_1040 Lclass_223;method_1040(Lclass_507;)F
      server a Lfx;a(Lna;)F
      client a Lix;a(Luu;)F
      named method_674 Lnet/minecraft/entity/player/PlayerInventory;method_674(Lnet/minecraft/block/Block;)F
    • method_673

      public NbtList method_673(NbtList nbtList)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_673 Lnet/minecraft/class_136;method_673(Lnet/minecraft/class_202;)Lnet/minecraft/class_202;
      glue method_1039 Lclass_223;method_1039(Lclass_452;)Lclass_452;
      server a Lfx;a(Llr;)Llr;
      client a Lix;a(Lsp;)Lsp;
      named method_673 Lnet/minecraft/entity/player/PlayerInventory;method_673(Lnet/minecraft/nbt/NbtList;)Lnet/minecraft/nbt/NbtList;
    • method_678

      public void method_678(NbtList nbtList)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_678 Lnet/minecraft/class_136;method_678(Lnet/minecraft/class_202;)V
      glue method_1044 Lclass_223;method_1044(Lclass_452;)V
      server b Lfx;b(Llr;)V
      client b Lix;b(Lsp;)V
      named method_678 Lnet/minecraft/entity/player/PlayerInventory;method_678(Lnet/minecraft/nbt/NbtList;)V
    • size

      public int size()
      Specified by:
      size in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      intermediary method_948 Lnet/minecraft/class_134;method_948()I
      glue method_49 Lclass_287;method_49()I
      server a Lhp;a()I
      client a Llw;a()I
      named size Lnet/minecraft/inventory/Inventory;size()I
    • getStack

      public ItemStack getStack(int slot)
      Specified by:
      getStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      intermediary method_954 Lnet/minecraft/class_134;method_954(I)Lnet/minecraft/class_31;
      glue method_58 Lclass_287;method_58(I)Lclass_224;
      server d_ Lhp;d_(I)Lfy;
      client f_ Llw;f_(I)Liz;
      named getStack Lnet/minecraft/inventory/Inventory;getStack(I)Lnet/minecraft/item/ItemStack;
    • getName

      public String getName()
      Specified by:
      getName in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      intermediary method_952 Lnet/minecraft/class_134;method_952()Ljava/lang/String;
      glue method_56 Lclass_287;method_56()Ljava/lang/String;
      server c Lhp;c()Ljava/lang/String;
      client c Llw;c()Ljava/lang/String;
      named getName Lnet/minecraft/inventory/Inventory;getName()Ljava/lang/String;
    • getMaxCountPerStack

      public int getMaxCountPerStack()
      Specified by:
      getMaxCountPerStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      intermediary method_953 Lnet/minecraft/class_134;method_953()I
      glue method_57 Lclass_287;method_57()I
      server d Lhp;d()I
      client d Llw;d()I
      named getMaxCountPerStack Lnet/minecraft/inventory/Inventory;getMaxCountPerStack()I
    • method_672

      public int method_672(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_672 Lnet/minecraft/class_136;method_672(Lnet/minecraft/class_57;)I
      glue method_1038 Lclass_223;method_1038(Lclass_450;)I
      server a Lfx;a(Llq;)I
      client a Lix;a(Lsn;)I
      named method_672 Lnet/minecraft/entity/player/PlayerInventory;method_672(Lnet/minecraft/entity/Entity;)I
    • method_679

      public boolean method_679(Block block)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_679 Lnet/minecraft/class_136;method_679(Lnet/minecraft/class_17;)Z
      glue method_1045 Lclass_223;method_1045(Lclass_507;)Z
      server b Lfx;b(Lna;)Z
      client b Lix;b(Luu;)Z
      named method_679 Lnet/minecraft/entity/player/PlayerInventory;method_679(Lnet/minecraft/block/Block;)Z
    • method_693

      @Environment(CLIENT) public ItemStack method_693(int int2)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_693 Lnet/minecraft/class_136;method_693(I)Lnet/minecraft/class_31;
      glue method_1403 Lclass_223;method_1403(I)Lclass_224;
      server method_693 Lfx;method_693(I)Lfy;
      client d Lix;d(I)Liz;
      named method_693 Lnet/minecraft/entity/player/PlayerInventory;method_693(I)Lnet/minecraft/item/ItemStack;
    • method_687

      public int method_687()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_687 Lnet/minecraft/class_136;method_687()I
      glue method_1053 Lclass_223;method_1053()I
      server g Lfx;g()I
      client f Lix;f()I
      named method_687 Lnet/minecraft/entity/player/PlayerInventory;method_687()I
    • method_680

      public void method_680(int int2)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_680 Lnet/minecraft/class_136;method_680(I)V
      glue method_1046 Lclass_223;method_1046(I)V
      server c Lfx;c(I)V
      client e Lix;e(I)V
      named method_680 Lnet/minecraft/entity/player/PlayerInventory;method_680(I)V
    • method_688

      public void method_688()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_688 Lnet/minecraft/class_136;method_688()V
      glue method_1054 Lclass_223;method_1054()V
      server h Lfx;h()V
      client g Lix;g()V
      named method_688 Lnet/minecraft/entity/player/PlayerInventory;method_688()V
    • markDirty

      public void markDirty()
      Specified by:
      markDirty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      intermediary method_947 Lnet/minecraft/class_134;method_947()V
      glue method_1055 Lclass_287;method_1055()V
      server i Lhp;i()V
      client y_ Llw;y_()V
      named markDirty Lnet/minecraft/inventory/Inventory;markDirty()V
    • setCursorStack

      public void setCursorStack(ItemStack cursorStack)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_677 Lnet/minecraft/class_136;method_677(Lnet/minecraft/class_31;)V
      glue method_1043 Lclass_223;method_1043(Lclass_224;)V
      server b Lfx;b(Lfy;)V
      client b Lix;b(Liz;)V
      named setCursorStack Lnet/minecraft/entity/player/PlayerInventory;setCursorStack(Lnet/minecraft/item/ItemStack;)V
    • getCursorStack

      public ItemStack getCursorStack()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_689 Lnet/minecraft/class_136;method_689()Lnet/minecraft/class_31;
      glue method_1056 Lclass_223;method_1056()Lclass_224;
      server j Lfx;j()Lfy;
      client i Lix;i()Liz;
      named getCursorStack Lnet/minecraft/entity/player/PlayerInventory;getCursorStack()Lnet/minecraft/item/ItemStack;
    • canPlayerUse

      public boolean canPlayerUse(PlayerEntity player)
      Specified by:
      canPlayerUse in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      intermediary method_951 Lnet/minecraft/class_134;method_951(Lnet/minecraft/class_54;)Z
      glue method_53 Lclass_287;method_53(Lclass_172;)Z
      server a_ Lhp;a_(Lem;)Z
      client a_ Llw;a_(Lgs;)Z
      named canPlayerUse Lnet/minecraft/inventory/Inventory;canPlayerUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • method_681

      public boolean method_681(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_681 Lnet/minecraft/class_136;method_681(Lnet/minecraft/class_31;)Z
      glue method_1047 Lclass_223;method_1047(Lclass_224;)Z
      server c Lfx;c(Lfy;)Z
      client c Lix;c(Liz;)Z
      named method_681 Lnet/minecraft/entity/player/PlayerInventory;method_681(Lnet/minecraft/item/ItemStack;)Z