Class SimpleInventory

java.lang.Object
net.minecraft.inventory.SimpleInventory
All Implemented Interfaces:
Inventory

@Environment(CLIENT) public class SimpleInventory extends Object implements Inventory
Mappings:
Namespace Name
intermediary net/minecraft/class_275
glue class_633
server net/minecraft/class_275
client qo
named net/minecraft/inventory/SimpleInventory
  • Field Details

    • name

      private String name
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2385 Lnet/minecraft/class_275;field_2385:Ljava/lang/String;
      glue field_2582 Lclass_633;field_2582:Ljava/lang/String;
      server field_2385 Lnet/minecraft/class_275;field_2385:Ljava/lang/String;
      client a Lqo;a:Ljava/lang/String;
      named name Lnet/minecraft/inventory/SimpleInventory;name:Ljava/lang/String;
    • size

      private int size
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2386 Lnet/minecraft/class_275;field_2386:I
      glue field_2583 Lclass_633;field_2583:I
      server field_2386 Lnet/minecraft/class_275;field_2386:I
      client b Lqo;b:I
      named size Lnet/minecraft/inventory/SimpleInventory;size:I
    • stacks

      private ItemStack[] stacks
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2387 Lnet/minecraft/class_275;field_2387:[Lnet/minecraft/class_31;
      glue field_2584 Lclass_633;field_2584:[Lclass_224;
      server field_2387 Lnet/minecraft/class_275;field_2387:[Lfy;
      client c Lqo;c:[Liz;
      named stacks Lnet/minecraft/inventory/SimpleInventory;stacks:[Lnet/minecraft/item/ItemStack;
    • listeners

      private List listeners
      List of InventoryListener
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2388 Lnet/minecraft/class_275;field_2388:Ljava/util/List;
      glue field_2585 Lclass_633;field_2585:Ljava/util/List;
      server field_2388 Lnet/minecraft/class_275;field_2388:Ljava/util/List;
      client d Lqo;d:Ljava/util/List;
      named listeners Lnet/minecraft/inventory/SimpleInventory;listeners:Ljava/util/List;
  • Constructor Details

    • SimpleInventory

      public SimpleInventory(String name, int size)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_275;<init>(Ljava/lang/String;I)V
      glue <init> Lclass_633;<init>(Ljava/lang/String;I)V
      server <init> Lnet/minecraft/class_275;<init>(Ljava/lang/String;I)V
      client <init> Lqo;<init>(Ljava/lang/String;I)V
      named <init> Lnet/minecraft/inventory/SimpleInventory;<init>(Ljava/lang/String;I)V
  • Method Details

    • 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;
    • 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
    • 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
    • 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
    • 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
    • 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