Class ScreenHandler

java.lang.Object
net.minecraft.screen.ScreenHandler
Direct Known Subclasses:
CraftingScreenHandler, DispenserScreenHandler, FurnaceScreenHandler, GenericContainerScreenHandler, PlayerScreenHandler

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

    • trackedStacks

      public List trackedStacks
      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 trackedStacks Lnet/minecraft/screen/ScreenHandler;trackedStacks: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/screen/ScreenHandler;slots:Ljava/util/List;
    • syncId

      public int syncId
      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 syncId Lnet/minecraft/screen/ScreenHandler;syncId:I
    • revision

      private short revision
      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 revision Lnet/minecraft/screen/ScreenHandler;revision: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/screen/ScreenHandler;listeners:Ljava/util/List;
    • players

      private Set players
      Players which have this screen open Used in Multiplayer
      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 players Lnet/minecraft/screen/ScreenHandler;players:Ljava/util/Set;
  • Constructor Details

    • ScreenHandler

      public ScreenHandler()
  • 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/screen/ScreenHandler;addSlot(Lnet/minecraft/screen/slot/Slot;)V
    • addListener

      @Environment(SERVER) public void addListener(class_633 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/screen/ScreenHandler;addListener(Lnet/minecraft/class_633;)V
    • getStacks

      @Environment(SERVER) public List getStacks()
      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 getStacks Lnet/minecraft/screen/ScreenHandler;getStacks()Ljava/util/List;
    • sendContentUpdates

      public void sendContentUpdates()
      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 sendContentUpdates Lnet/minecraft/screen/ScreenHandler;sendContentUpdates()V
    • getSlot

      @Environment(SERVER) public Slot getSlot(Inventory inventory, int index)
      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 getSlot Lnet/minecraft/screen/ScreenHandler;getSlot(Lnet/minecraft/inventory/Inventory;I)Lnet/minecraft/screen/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/screen/ScreenHandler;getSlot(I)Lnet/minecraft/screen/slot/Slot;
    • quickMove

      public ItemStack quickMove(int slot)
      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 quickMove Lnet/minecraft/screen/ScreenHandler;quickMove(I)Lnet/minecraft/item/ItemStack;
    • onSlotClick

      public ItemStack onSlotClick(int index, int button, boolean shift, PlayerEntity 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 onSlotClick Lnet/minecraft/screen/ScreenHandler;onSlotClick(IIZLnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
    • onClosed

      public void onClosed(PlayerEntity 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/screen/ScreenHandler;onClosed(Lnet/minecraft/entity/player/PlayerEntity;)V
    • onSlotUpdate

      public void onSlotUpdate(Inventory 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 onSlotUpdate Lnet/minecraft/screen/ScreenHandler;onSlotUpdate(Lnet/minecraft/inventory/Inventory;)V
    • setStackInSlot

      @Environment(CLIENT) public void setStackInSlot(int index, ItemStack 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 setStackInSlot Lnet/minecraft/screen/ScreenHandler;setStackInSlot(ILnet/minecraft/item/ItemStack;)V
    • updateSlotStacks

      @Environment(CLIENT) public void updateSlotStacks(ItemStack[] 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 updateSlotStacks Lnet/minecraft/screen/ScreenHandler;updateSlotStacks([Lnet/minecraft/item/ItemStack;)V
    • setProperty

      @Environment(CLIENT) public void setProperty(int id, 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/screen/ScreenHandler;setProperty(II)V
    • nextRevision

      @Environment(CLIENT) public short nextRevision(PlayerInventory inventory)
      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 nextRevision Lnet/minecraft/screen/ScreenHandler;nextRevision(Lnet/minecraft/entity/player/PlayerInventory;)S
    • onAcknowledgementAccepted

      @Environment(CLIENT) public void onAcknowledgementAccepted(short actionType)
      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 onAcknowledgementAccepted Lnet/minecraft/screen/ScreenHandler;onAcknowledgementAccepted(S)V
    • onAcknowledgementDenied

      @Environment(CLIENT) public void onAcknowledgementDenied(short actionType)
      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 onAcknowledgementDenied Lnet/minecraft/screen/ScreenHandler;onAcknowledgementDenied(S)V
    • canOpen

      @Environment(SERVER) public boolean canOpen(PlayerEntity player)
      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 canOpen Lnet/minecraft/screen/ScreenHandler;canOpen(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • updatePlayerList

      @Environment(SERVER) public void updatePlayerList(PlayerEntity player, boolean remove)
      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 updatePlayerList Lnet/minecraft/screen/ScreenHandler;updatePlayerList(Lnet/minecraft/entity/player/PlayerEntity;Z)V
    • canUse

      public abstract boolean canUse(PlayerEntity 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/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • insertItem

      protected void insertItem(ItemStack stack, int startIndex, int endIndex, boolean fromLast)
      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/screen/ScreenHandler;insertItem(Lnet/minecraft/item/ItemStack;IIZ)V