Class ScreenHandler

java.lang.Object
net.minecraft.screen.ScreenHandler
Direct Known Subclasses:
AnvilScreenHandler, BeaconScreenHandler, BrewingScreenHandler, ChestScreenHandler, class_3054, CraftingScreenHandler, CreativeInventoryScreen.CreativeScreenHandler, EnchantingScreenHandler, FurnaceScreenHandler, Generic3x3ScreenHandler, HopperScreenHandler, HorseScreenHandler, PlayerScreenHandler, VillagerScreenHandler

public abstract class ScreenHandler extends Object
Mappings:
Namespace Name
official acl
intermediary net/minecraft/class_1002
named net/minecraft/screen/ScreenHandler
  • Field Details

    • field_15099

      public DefaultedList<ItemStack> field_15099
      Mappings:
      Namespace Name Mixin selector
      official b Lacl;b:Ldd;
      intermediary field_15099 Lnet/minecraft/class_1002;field_15099:Lnet/minecraft/class_3114;
      named field_15099 Lnet/minecraft/screen/ScreenHandler;field_15099:Lnet/minecraft/util/collection/DefaultedList;
    • slots

      public List<Slot> slots
      Mappings:
      Namespace Name Mixin selector
      official c Lacl;c:Ljava/util/List;
      intermediary field_4087 Lnet/minecraft/class_1002;field_4087:Ljava/util/List;
      named slots Lnet/minecraft/screen/ScreenHandler;slots:Ljava/util/List;
    • syncId

      public int syncId
      Mappings:
      Namespace Name Mixin selector
      official d Lacl;d:I
      intermediary field_4088 Lnet/minecraft/class_1002;field_4088:I
      named syncId Lnet/minecraft/screen/ScreenHandler;syncId:I
    • actionId

      @Environment(CLIENT) private short actionId
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a:S
      intermediary field_4090 Lnet/minecraft/class_1002;field_4090:S
      named actionId Lnet/minecraft/screen/ScreenHandler;actionId:S
    • quickCraftStage

      private int quickCraftStage
      Mappings:
      Namespace Name Mixin selector
      official f Lacl;f:I
      intermediary field_6159 Lnet/minecraft/class_1002;field_6159:I
      named quickCraftStage Lnet/minecraft/screen/ScreenHandler;quickCraftStage:I
    • quickCraftButton

      private int quickCraftButton
      Mappings:
      Namespace Name Mixin selector
      official g Lacl;g:I
      intermediary field_6160 Lnet/minecraft/class_1002;field_6160:I
      named quickCraftButton Lnet/minecraft/screen/ScreenHandler;quickCraftButton:I
    • quickCraftSlots

      private final Set<Slot> quickCraftSlots
      Mappings:
      Namespace Name Mixin selector
      official h Lacl;h:Ljava/util/Set;
      intermediary field_6161 Lnet/minecraft/class_1002;field_6161:Ljava/util/Set;
      named quickCraftSlots Lnet/minecraft/screen/ScreenHandler;quickCraftSlots:Ljava/util/Set;
    • listeners

      protected List<ScreenHandlerListener> listeners
      Mappings:
      Namespace Name Mixin selector
      official e Lacl;e:Ljava/util/List;
      intermediary field_4089 Lnet/minecraft/class_1002;field_4089:Ljava/util/List;
      named listeners Lnet/minecraft/screen/ScreenHandler;listeners:Ljava/util/List;
    • restrictedPlayers

      private final Set<PlayerEntity> restrictedPlayers
      Mappings:
      Namespace Name Mixin selector
      official i Lacl;i:Ljava/util/Set;
      intermediary field_4091 Lnet/minecraft/class_1002;field_4091:Ljava/util/Set;
      named restrictedPlayers Lnet/minecraft/screen/ScreenHandler;restrictedPlayers:Ljava/util/Set;
  • Constructor Details

    • ScreenHandler

      public ScreenHandler()
  • Method Details

    • addSlot

      protected Slot addSlot(Slot slot)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Ladl;)Ladl;
      intermediary method_3261 Lnet/minecraft/class_1002;method_3261(Lnet/minecraft/class_1026;)Lnet/minecraft/class_1026;
      named addSlot Lnet/minecraft/screen/ScreenHandler;addSlot(Lnet/minecraft/inventory/slot/Slot;)Lnet/minecraft/inventory/slot/Slot;
    • addListener

      public void addListener(ScreenHandlerListener listener)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Lacr;)V
      intermediary method_3260 Lnet/minecraft/class_1002;method_3260(Lnet/minecraft/class_1006;)V
      named addListener Lnet/minecraft/screen/ScreenHandler;addListener(Lnet/minecraft/screen/ScreenHandlerListener;)V
    • removeListener

      @Environment(CLIENT) public void removeListener(ScreenHandlerListener listener)
      Mappings:
      Namespace Name Mixin selector
      official b Lacl;b(Lacr;)V
      intermediary method_4589 Lnet/minecraft/class_1002;method_4589(Lnet/minecraft/class_1006;)V
      named removeListener Lnet/minecraft/screen/ScreenHandler;removeListener(Lnet/minecraft/screen/ScreenHandlerListener;)V
    • method_13641

      public DefaultedList<ItemStack> method_13641()
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a()Ldd;
      intermediary method_13641 Lnet/minecraft/class_1002;method_13641()Lnet/minecraft/class_3114;
      named method_13641 Lnet/minecraft/screen/ScreenHandler;method_13641()Lnet/minecraft/util/collection/DefaultedList;
    • sendContentUpdates

      public void sendContentUpdates()
      Sends updates to listeners if any properties or slot stacks have changed.
      Mappings:
      Namespace Name Mixin selector
      official b Lacl;b()V
      intermediary method_3264 Lnet/minecraft/class_1002;method_3264()V
      named sendContentUpdates Lnet/minecraft/screen/ScreenHandler;sendContentUpdates()V
    • onButtonClick

      public boolean onButtonClick(PlayerEntity player, int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Laay;I)Z
      intermediary method_3258 Lnet/minecraft/class_1002;method_3258(Lnet/minecraft/class_988;I)Z
      named onButtonClick Lnet/minecraft/screen/ScreenHandler;onButtonClick(Lnet/minecraft/entity/player/PlayerEntity;I)Z
    • method_3255

      @Nullable public Slot method_3255(Inventory inventory, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Lrc;I)Ladl;
      intermediary method_3255 Lnet/minecraft/class_1002;method_3255(Lnet/minecraft/class_849;I)Lnet/minecraft/class_1026;
      named method_3255 Lnet/minecraft/screen/ScreenHandler;method_3255(Lnet/minecraft/inventory/Inventory;I)Lnet/minecraft/inventory/slot/Slot;
    • getSlot

      public Slot getSlot(int index)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(I)Ladl;
      intermediary method_3251 Lnet/minecraft/class_1002;method_3251(I)Lnet/minecraft/class_1026;
      named getSlot Lnet/minecraft/screen/ScreenHandler;getSlot(I)Lnet/minecraft/inventory/slot/Slot;
    • transferSlot

      public ItemStack transferSlot(PlayerEntity player, int invSlot)
      Mappings:
      Namespace Name Mixin selector
      official b Lacl;b(Laay;I)Lafj;
      intermediary method_3265 Lnet/minecraft/class_1002;method_3265(Lnet/minecraft/class_988;I)Lnet/minecraft/class_1071;
      named transferSlot Lnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
    • method_3252

      public ItemStack method_3252(int int2, int int3, ItemAction itemAction, PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(IILacq;Laay;)Lafj;
      intermediary method_3252 Lnet/minecraft/class_1002;method_3252(IILnet/minecraft/class_2679;Lnet/minecraft/class_988;)Lnet/minecraft/class_1071;
      named method_3252 Lnet/minecraft/screen/ScreenHandler;method_3252(IILnet/minecraft/util/ItemAction;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
    • canInsertIntoSlot

      public boolean canInsertIntoSlot(ItemStack stack, Slot slot)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Lafj;Ladl;)Z
      intermediary method_5449 Lnet/minecraft/class_1002;method_5449(Lnet/minecraft/class_1071;Lnet/minecraft/class_1026;)Z
      named canInsertIntoSlot Lnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/item/ItemStack;Lnet/minecraft/inventory/slot/Slot;)Z
    • onSlotClick

      protected void onSlotClick(int slotId, int clickData, boolean bool, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(IIZLaay;)V
      intermediary method_3267 Lnet/minecraft/class_1002;method_3267(IIZLnet/minecraft/class_988;)V
      named onSlotClick Lnet/minecraft/screen/ScreenHandler;onSlotClick(IIZLnet/minecraft/entity/player/PlayerEntity;)V
    • close

      public void close(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official b Lacl;b(Laay;)V
      intermediary method_3257 Lnet/minecraft/class_1002;method_3257(Lnet/minecraft/class_988;)V
      named close Lnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
    • onContentChanged

      public void onContentChanged(Inventory inventory)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Lrc;)V
      intermediary method_3254 Lnet/minecraft/class_1002;method_3254(Lnet/minecraft/class_849;)V
      named onContentChanged Lnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
    • setStackInSlot

      public void setStackInSlot(int slot, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(ILafj;)V
      intermediary method_3253 Lnet/minecraft/class_1002;method_3253(ILnet/minecraft/class_1071;)V
      named setStackInSlot Lnet/minecraft/screen/ScreenHandler;setStackInSlot(ILnet/minecraft/item/ItemStack;)V
    • method_13642

      @Environment(CLIENT) public void method_13642(List<ItemStack> list)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Ljava/util/List;)V
      intermediary method_13642 Lnet/minecraft/class_1002;method_13642(Ljava/util/List;)V
      named method_13642 Lnet/minecraft/screen/ScreenHandler;method_13642(Ljava/util/List;)V
    • setProperty

      @Environment(CLIENT) public void setProperty(int id, int value)
      Mappings:
      Namespace Name Mixin selector
      official b Lacl;b(II)V
      intermediary method_3266 Lnet/minecraft/class_1002;method_3266(II)V
      named setProperty Lnet/minecraft/screen/ScreenHandler;setProperty(II)V
    • getNextActionId

      @Environment(CLIENT) public short getNextActionId(PlayerInventory playerInventory)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Laax;)S
      intermediary method_3256 Lnet/minecraft/class_1002;method_3256(Lnet/minecraft/class_987;)S
      named getNextActionId Lnet/minecraft/screen/ScreenHandler;getNextActionId(Lnet/minecraft/entity/player/PlayerInventory;)S
    • isNotRestricted

      public boolean isNotRestricted(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official c Lacl;c(Laay;)Z
      intermediary method_3268 Lnet/minecraft/class_1002;method_3268(Lnet/minecraft/class_988;)Z
      named isNotRestricted Lnet/minecraft/screen/ScreenHandler;isNotRestricted(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • setPlayerRestriction

      public void setPlayerRestriction(PlayerEntity player, boolean unrestricted)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Laay;Z)V
      intermediary method_3259 Lnet/minecraft/class_1002;method_3259(Lnet/minecraft/class_988;Z)V
      named setPlayerRestriction Lnet/minecraft/screen/ScreenHandler;setPlayerRestriction(Lnet/minecraft/entity/player/PlayerEntity;Z)V
    • canUse

      public abstract boolean canUse(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Laay;)Z
      intermediary method_3269 Lnet/minecraft/class_1002;method_3269(Lnet/minecraft/class_988;)Z
      named canUse Lnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • insertItem

      protected boolean insertItem(ItemStack stack, int startIndex, int endIndex, boolean fromLast)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Lafj;IIZ)Z
      intermediary method_3262 Lnet/minecraft/class_1002;method_3262(Lnet/minecraft/class_1071;IIZ)Z
      named insertItem Lnet/minecraft/screen/ScreenHandler;insertItem(Lnet/minecraft/item/ItemStack;IIZ)Z
    • unpackQuickCraftStage

      public static int unpackQuickCraftStage(int clickData)
      Mappings:
      Namespace Name Mixin selector
      official b Lacl;b(I)I
      intermediary method_5450 Lnet/minecraft/class_1002;method_5450(I)I
      named unpackQuickCraftStage Lnet/minecraft/screen/ScreenHandler;unpackQuickCraftStage(I)I
    • unpackButtonId

      public static int unpackButtonId(int clickData)
      Mappings:
      Namespace Name Mixin selector
      official c Lacl;c(I)I
      intermediary method_5453 Lnet/minecraft/class_1002;method_5453(I)I
      named unpackButtonId Lnet/minecraft/screen/ScreenHandler;unpackButtonId(I)I
    • packClickData

      @Environment(CLIENT) public static int packClickData(int buttonId, int quickCraftStage)
      Mappings:
      Namespace Name Mixin selector
      official d Lacl;d(II)I
      intermediary method_5456 Lnet/minecraft/class_1002;method_5456(II)I
      named packClickData Lnet/minecraft/screen/ScreenHandler;packClickData(II)I
    • shouldQuickCraftContinue

      public static boolean shouldQuickCraftContinue(int int2, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(ILaay;)Z
      intermediary method_11255 Lnet/minecraft/class_1002;method_11255(ILnet/minecraft/class_988;)Z
      named shouldQuickCraftContinue Lnet/minecraft/screen/ScreenHandler;shouldQuickCraftContinue(ILnet/minecraft/entity/player/PlayerEntity;)Z
    • endQuickCraft

      protected void endQuickCraft()
      Mappings:
      Namespace Name Mixin selector
      official d Lacl;d()V
      intermediary method_5454 Lnet/minecraft/class_1002;method_5454()V
      named endQuickCraft Lnet/minecraft/screen/ScreenHandler;endQuickCraft()V
    • canInsertItemIntoSlot

      public static boolean canInsertItemIntoSlot(@Nullable Slot slot, ItemStack stack, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Ladl;Lafj;Z)Z
      intermediary method_5448 Lnet/minecraft/class_1002;method_5448(Lnet/minecraft/class_1026;Lnet/minecraft/class_1071;Z)Z
      named canInsertItemIntoSlot Lnet/minecraft/screen/ScreenHandler;canInsertItemIntoSlot(Lnet/minecraft/inventory/slot/Slot;Lnet/minecraft/item/ItemStack;Z)Z
    • calculateStackSize

      public static void calculateStackSize(Set<Slot> slots, int rmode, ItemStack stack, int stackSize)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Ljava/util/Set;ILafj;I)V
      intermediary method_5447 Lnet/minecraft/class_1002;method_5447(Ljava/util/Set;ILnet/minecraft/class_1071;I)V
      named calculateStackSize Lnet/minecraft/screen/ScreenHandler;calculateStackSize(Ljava/util/Set;ILnet/minecraft/item/ItemStack;I)V
    • canInsertIntoSlot

      public boolean canInsertIntoSlot(Slot slot)
      Mappings:
      Namespace Name Mixin selector
      official b Lacl;b(Ladl;)Z
      intermediary method_5452 Lnet/minecraft/class_1002;method_5452(Lnet/minecraft/class_1026;)Z
      named canInsertIntoSlot Lnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/inventory/slot/Slot;)Z
    • calculateComparatorOutput

      public static int calculateComparatorOutput(@Nullable BlockEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Lasc;)I
      intermediary method_11256 Lnet/minecraft/class_1002;method_11256(Lnet/minecraft/class_226;)I
      named calculateComparatorOutput Lnet/minecraft/screen/ScreenHandler;calculateComparatorOutput(Lnet/minecraft/block/entity/BlockEntity;)I
    • calculateComparatorOutput

      public static int calculateComparatorOutput(@Nullable Inventory inventory)
      Mappings:
      Namespace Name Mixin selector
      official b Lacl;b(Lrc;)I
      intermediary method_5451 Lnet/minecraft/class_1002;method_5451(Lnet/minecraft/class_849;)I
      named calculateComparatorOutput Lnet/minecraft/screen/ScreenHandler;calculateComparatorOutput(Lnet/minecraft/inventory/Inventory;)I