Class ContainerBase

java.lang.Object
net.minecraft.container.ContainerBase
Direct Known Subclasses:
Chest, Crafting, Dispenser, Furnace, PlayerContainer

public abstract class ContainerBase extends Object
Mappings:
Namespace Name
intermediary net/minecraft/class_71
glue class_94
server cl
client dw
named net/minecraft/container/ContainerBase
  • Field Details

    • items

      public List items
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2733 Lnet/minecraft/class_71;field_2733:Ljava/util/List;
      glue field_207 Lclass_94;field_207:Ljava/util/List;
      server d Lcl;d:Ljava/util/List;
      client d Ldw;d:Ljava/util/List;
      named items Lnet/minecraft/container/ContainerBase;items:Ljava/util/List;
    • slots

      public List slots
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2734 Lnet/minecraft/class_71;field_2734:Ljava/util/List;
      glue field_208 Lclass_94;field_208:Ljava/util/List;
      server e Lcl;e:Ljava/util/List;
      client e Ldw;e:Ljava/util/List;
      named slots Lnet/minecraft/container/ContainerBase;slots:Ljava/util/List;
    • currentContainerId

      public int currentContainerId
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2735 Lnet/minecraft/class_71;field_2735:I
      glue field_209 Lclass_94;field_209:I
      server f Lcl;f:I
      client f Ldw;f:I
      named currentContainerId Lnet/minecraft/container/ContainerBase;currentContainerId:I
    • field_2731

      private short field_2731
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2731 Lnet/minecraft/class_71;field_2731:S
      glue field_205 Lclass_94;field_205:S
      server a Lcl;a:S
      client a Ldw;a:S
      named field_2731 Lnet/minecraft/container/ContainerBase;field_2731:S
    • listeners

      protected List listeners
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2736 Lnet/minecraft/class_71;field_2736:Ljava/util/List;
      glue field_210 Lclass_94;field_210:Ljava/util/List;
      server g Lcl;g:Ljava/util/List;
      client g Ldw;g:Ljava/util/List;
      named listeners Lnet/minecraft/container/ContainerBase;listeners:Ljava/util/List;
    • field_2732

      private Set field_2732
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2732 Lnet/minecraft/class_71;field_2732:Ljava/util/Set;
      glue field_206 Lclass_94;field_206:Ljava/util/Set;
      server b Lcl;b:Ljava/util/Set;
      client b Ldw;b:Ljava/util/Set;
      named field_2732 Lnet/minecraft/container/ContainerBase;field_2732:Ljava/util/Set;
  • Constructor Details

    • ContainerBase

      public ContainerBase()
  • Method Details

    • addSlot

      protected void addSlot(Slot slot)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2079 Lnet/minecraft/class_71;method_2079(Lnet/minecraft/class_133;)V
      glue method_289 Lclass_94;method_289(Lclass_170;)V
      server a Lcl;a(Lel;)V
      client a Ldw;a(Lgp;)V
      named addSlot Lnet/minecraft/container/ContainerBase;addSlot(Lnet/minecraft/container/slot/Slot;)V
    • addListener

      @Environment(SERVER) public void addListener(ContainerListener listener)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2076 Lnet/minecraft/class_71;method_2076(Lnet/minecraft/class_633;)V
      glue method_105 Lclass_94;method_105(Lclass_99;)V
      server a Lcl;a(Lcp;)V
      client method_2076 Ldw;method_2076(Lec;)V
      named addListener Lnet/minecraft/container/ContainerBase;addListener(Lnet/minecraft/container/ContainerListener;)V
    • getItems

      @Environment(SERVER) public List getItems()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2083 Lnet/minecraft/class_71;method_2083()Ljava/util/List;
      glue method_293 Lclass_94;method_293()Ljava/util/List;
      server b Lcl;b()Ljava/util/List;
      client method_2083 Ldw;method_2083()Ljava/util/List;
      named getItems Lnet/minecraft/container/ContainerBase;getItems()Ljava/util/List;
    • tick

      public void tick()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2075 Lnet/minecraft/class_71;method_2075()V
      glue method_104 Lclass_94;method_104()V
      server a Lcl;a()V
      client a Ldw;a()V
      named tick Lnet/minecraft/container/ContainerBase;tick()V
    • method_2082

      @Environment(SERVER) public Slot method_2082(InventoryBase inventoryBase, int int2)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2082 Lnet/minecraft/class_71;method_2082(Lnet/minecraft/class_134;I)Lnet/minecraft/class_133;
      glue method_292 Lclass_94;method_292(Lclass_287;I)Lclass_170;
      server a Lcl;a(Lhp;I)Lel;
      client method_2082 Ldw;method_2082(Llw;I)Lgp;
      named method_2082 Lnet/minecraft/container/ContainerBase;method_2082(Lnet/minecraft/inventory/InventoryBase;I)Lnet/minecraft/container/slot/Slot;
    • getSlot

      public Slot getSlot(int index)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2084 Lnet/minecraft/class_71;method_2084(I)Lnet/minecraft/class_133;
      glue method_294 Lclass_94;method_294(I)Lclass_170;
      server b Lcl;b(I)Lel;
      client b Ldw;b(I)Lgp;
      named getSlot Lnet/minecraft/container/ContainerBase;getSlot(I)Lnet/minecraft/container/slot/Slot;
    • transferSlot

      public ItemInstance transferSlot(int slotIndex)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2086 Lnet/minecraft/class_71;method_2086(I)Lnet/minecraft/class_31;
      glue method_5 Lclass_94;method_5(I)Lclass_224;
      server a Lcl;a(I)Lfy;
      client a Ldw;a(I)Liz;
      named transferSlot Lnet/minecraft/container/ContainerBase;transferSlot(I)Lnet/minecraft/item/ItemInstance;
    • clickSlot

      public ItemInstance clickSlot(int slotIndex, int clickType, boolean bool, PlayerBase player)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2078 Lnet/minecraft/class_71;method_2078(IIZLnet/minecraft/class_54;)Lnet/minecraft/class_31;
      glue method_288 Lclass_94;method_288(IIZLclass_172;)Lclass_224;
      server a Lcl;a(IIZLem;)Lfy;
      client a Ldw;a(IIZLgs;)Liz;
      named clickSlot Lnet/minecraft/container/ContainerBase;clickSlot(IIZLnet/minecraft/entity/player/PlayerBase;)Lnet/minecraft/item/ItemInstance;
    • onClosed

      public void onClosed(PlayerBase player)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2087 Lnet/minecraft/class_71;method_2087(Lnet/minecraft/class_54;)V
      glue method_6 Lclass_94;method_6(Lclass_172;)V
      server a Lcl;a(Lem;)V
      client a Ldw;a(Lgs;)V
      named onClosed Lnet/minecraft/container/ContainerBase;onClosed(Lnet/minecraft/entity/player/PlayerBase;)V
    • onContentsChanged

      public void onContentsChanged(InventoryBase inventory)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2088 Lnet/minecraft/class_71;method_2088(Lnet/minecraft/class_134;)V
      glue method_7 Lclass_94;method_7(Lclass_287;)V
      server a Lcl;a(Lhp;)V
      client a Ldw;a(Llw;)V
      named onContentsChanged Lnet/minecraft/container/ContainerBase;onContentsChanged(Lnet/minecraft/inventory/InventoryBase;)V
    • setStack

      @Environment(CLIENT) public void setStack(int slotIndex, ItemInstance stack)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2089 Lnet/minecraft/class_71;method_2089(ILnet/minecraft/class_31;)V
      glue method_712 Lclass_94;method_712(ILclass_224;)V
      server method_2089 Lcl;method_2089(ILfy;)V
      client a Ldw;a(ILiz;)V
      named setStack Lnet/minecraft/container/ContainerBase;setStack(ILnet/minecraft/item/ItemInstance;)V
    • setStacks

      @Environment(CLIENT) public void setStacks(ItemInstance[] stacks)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2092 Lnet/minecraft/class_71;method_2092([Lnet/minecraft/class_31;)V
      glue method_715 Lclass_94;method_715([Lclass_224;)V
      server method_2092 Lcl;method_2092([Lfy;)V
      client a Ldw;a([Liz;)V
      named setStacks Lnet/minecraft/container/ContainerBase;setStacks([Lnet/minecraft/item/ItemInstance;)V
    • setProperty

      @Environment(CLIENT) public void setProperty(int index, int value)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2077 Lnet/minecraft/class_71;method_2077(II)V
      glue method_192 Lclass_94;method_192(II)V
      server method_2077 Lcl;method_2077(II)V
      client a Ldw;a(II)V
      named setProperty Lnet/minecraft/container/ContainerBase;setProperty(II)V
    • method_2090

      @Environment(CLIENT) public short method_2090(PlayerInventory playerInventory)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2090 Lnet/minecraft/class_71;method_2090(Lnet/minecraft/class_136;)S
      glue method_713 Lclass_94;method_713(Lclass_223;)S
      server method_2090 Lcl;method_2090(Lfx;)S
      client a Ldw;a(Lix;)S
      named method_2090 Lnet/minecraft/container/ContainerBase;method_2090(Lnet/minecraft/entity/player/PlayerInventory;)S
    • method_2091

      @Environment(CLIENT) public void method_2091(short short2)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2091 Lnet/minecraft/class_71;method_2091(S)V
      glue method_714 Lclass_94;method_714(S)V
      server method_2091 Lcl;method_2091(S)V
      client a Ldw;a(S)V
      named method_2091 Lnet/minecraft/container/ContainerBase;method_2091(S)V
    • method_2093

      @Environment(CLIENT) public void method_2093(short short2)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2093 Lnet/minecraft/class_71;method_2093(S)V
      glue method_716 Lclass_94;method_716(S)V
      server method_2093 Lcl;method_2093(S)V
      client b Ldw;b(S)V
      named method_2093 Lnet/minecraft/container/ContainerBase;method_2093(S)V
    • method_2085

      @Environment(SERVER) public boolean method_2085(PlayerBase playerBase)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2085 Lnet/minecraft/class_71;method_2085(Lnet/minecraft/class_54;)Z
      glue method_295 Lclass_94;method_295(Lclass_172;)Z
      server c Lcl;c(Lem;)Z
      client method_2085 Ldw;method_2085(Lgs;)Z
      named method_2085 Lnet/minecraft/container/ContainerBase;method_2085(Lnet/minecraft/entity/player/PlayerBase;)Z
    • method_2080

      @Environment(SERVER) public void method_2080(PlayerBase playerBase, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2080 Lnet/minecraft/class_71;method_2080(Lnet/minecraft/class_54;Z)V
      glue method_290 Lclass_94;method_290(Lclass_172;Z)V
      server a Lcl;a(Lem;Z)V
      client method_2080 Ldw;method_2080(Lgs;Z)V
      named method_2080 Lnet/minecraft/container/ContainerBase;method_2080(Lnet/minecraft/entity/player/PlayerBase;Z)V
    • canUse

      public abstract boolean canUse(PlayerBase player)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2094 Lnet/minecraft/class_71;method_2094(Lnet/minecraft/class_54;)Z
      glue method_8 Lclass_94;method_8(Lclass_172;)Z
      server b Lcl;b(Lem;)Z
      client b Ldw;b(Lgs;)Z
      named canUse Lnet/minecraft/container/ContainerBase;canUse(Lnet/minecraft/entity/player/PlayerBase;)Z
    • insertItem

      protected void insertItem(ItemInstance itemInstance, int int2, int int3, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2081 Lnet/minecraft/class_71;method_2081(Lnet/minecraft/class_31;IIZ)V
      glue method_291 Lclass_94;method_291(Lclass_224;IIZ)V
      server a Lcl;a(Lfy;IIZ)V
      client a Ldw;a(Liz;IIZ)V
      named insertItem Lnet/minecraft/container/ContainerBase;insertItem(Lnet/minecraft/item/ItemInstance;IIZ)V