Package net.minecraft.screen
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
- Mappings:
Namespace Name official aclintermediary net/minecraft/class_1002named net/minecraft/screen/ScreenHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate shortprotected List<ScreenHandlerListener>private intprivate intprivate final Set<PlayerEntity>int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ScreenHandlerListener listener) protected Slotstatic intcalculateComparatorOutput(BlockEntity entity) static intcalculateComparatorOutput(Inventory inventory) static voidcalculateStackSize(Set<Slot> slots, int rmode, ItemStack stack, int stackSize) booleancanInsertIntoSlot(Slot slot) booleancanInsertIntoSlot(ItemStack stack, Slot slot) static booleancanInsertItemIntoSlot(Slot slot, ItemStack stack, boolean bool) abstract booleancanUse(PlayerEntity player) voidclose(PlayerEntity player) protected voidshortgetNextActionId(PlayerInventory playerInventory) getSlot(int index) protected booleaninsertItem(ItemStack stack, int startIndex, int endIndex, boolean fromLast) booleanisNotRestricted(PlayerEntity player) voidmethod_13642(List<ItemStack> list) method_3252(int int2, int int3, ItemAction itemAction, PlayerEntity playerEntity) method_3255(Inventory inventory, int int2) booleanonButtonClick(PlayerEntity player, int id) voidonContentChanged(Inventory inventory) protected voidonSlotClick(int slotId, int clickData, boolean bool, PlayerEntity player) static intpackClickData(int buttonId, int quickCraftStage) voidremoveListener(ScreenHandlerListener listener) voidSends updates to listeners if any properties or slot stacks have changed.voidsetPlayerRestriction(PlayerEntity player, boolean unrestricted) voidsetProperty(int id, int value) voidsetStackInSlot(int slot, ItemStack stack) static booleanshouldQuickCraftContinue(int int2, PlayerEntity player) transferSlot(PlayerEntity player, int invSlot) static intunpackButtonId(int clickData) static intunpackQuickCraftStage(int clickData)
-
Field Details
-
field_15099
- Mappings:
Namespace Name Mixin selector official bLacl;b:Ldd;intermediary field_15099Lnet/minecraft/class_1002;field_15099:Lnet/minecraft/class_3114;named field_15099Lnet/minecraft/screen/ScreenHandler;field_15099:Lnet/minecraft/util/collection/DefaultedList;
-
slots
- Mappings:
Namespace Name Mixin selector official cLacl;c:Ljava/util/List;intermediary field_4087Lnet/minecraft/class_1002;field_4087:Ljava/util/List;named slotsLnet/minecraft/screen/ScreenHandler;slots:Ljava/util/List;
-
syncId
public int syncId- Mappings:
Namespace Name Mixin selector official dLacl;d:Iintermediary field_4088Lnet/minecraft/class_1002;field_4088:Inamed syncIdLnet/minecraft/screen/ScreenHandler;syncId:I
-
actionId
- Mappings:
Namespace Name Mixin selector official aLacl;a:Sintermediary field_4090Lnet/minecraft/class_1002;field_4090:Snamed actionIdLnet/minecraft/screen/ScreenHandler;actionId:S
-
quickCraftStage
private int quickCraftStage- Mappings:
Namespace Name Mixin selector official fLacl;f:Iintermediary field_6159Lnet/minecraft/class_1002;field_6159:Inamed quickCraftStageLnet/minecraft/screen/ScreenHandler;quickCraftStage:I
-
quickCraftButton
private int quickCraftButton- Mappings:
Namespace Name Mixin selector official gLacl;g:Iintermediary field_6160Lnet/minecraft/class_1002;field_6160:Inamed quickCraftButtonLnet/minecraft/screen/ScreenHandler;quickCraftButton:I
-
quickCraftSlots
- Mappings:
Namespace Name Mixin selector official hLacl;h:Ljava/util/Set;intermediary field_6161Lnet/minecraft/class_1002;field_6161:Ljava/util/Set;named quickCraftSlotsLnet/minecraft/screen/ScreenHandler;quickCraftSlots:Ljava/util/Set;
-
listeners
- Mappings:
Namespace Name Mixin selector official eLacl;e:Ljava/util/List;intermediary field_4089Lnet/minecraft/class_1002;field_4089:Ljava/util/List;named listenersLnet/minecraft/screen/ScreenHandler;listeners:Ljava/util/List;
-
restrictedPlayers
- Mappings:
Namespace Name Mixin selector official iLacl;i:Ljava/util/Set;intermediary field_4091Lnet/minecraft/class_1002;field_4091:Ljava/util/Set;named restrictedPlayersLnet/minecraft/screen/ScreenHandler;restrictedPlayers:Ljava/util/Set;
-
-
Constructor Details
-
ScreenHandler
public ScreenHandler()
-
-
Method Details
-
addSlot
- Mappings:
Namespace Name Mixin selector official aLacl;a(Ladl;)Ladl;intermediary method_3261Lnet/minecraft/class_1002;method_3261(Lnet/minecraft/class_1026;)Lnet/minecraft/class_1026;named addSlotLnet/minecraft/screen/ScreenHandler;addSlot(Lnet/minecraft/inventory/slot/Slot;)Lnet/minecraft/inventory/slot/Slot;
-
addListener
- Mappings:
Namespace Name Mixin selector official aLacl;a(Lacr;)Vintermediary method_3260Lnet/minecraft/class_1002;method_3260(Lnet/minecraft/class_1006;)Vnamed addListenerLnet/minecraft/screen/ScreenHandler;addListener(Lnet/minecraft/screen/ScreenHandlerListener;)V
-
removeListener
- Mappings:
Namespace Name Mixin selector official bLacl;b(Lacr;)Vintermediary method_4589Lnet/minecraft/class_1002;method_4589(Lnet/minecraft/class_1006;)Vnamed removeListenerLnet/minecraft/screen/ScreenHandler;removeListener(Lnet/minecraft/screen/ScreenHandlerListener;)V
-
method_13641
- Mappings:
Namespace Name Mixin selector official aLacl;a()Ldd;intermediary method_13641Lnet/minecraft/class_1002;method_13641()Lnet/minecraft/class_3114;named method_13641Lnet/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 bLacl;b()Vintermediary method_3264Lnet/minecraft/class_1002;method_3264()Vnamed sendContentUpdatesLnet/minecraft/screen/ScreenHandler;sendContentUpdates()V
-
onButtonClick
- Mappings:
Namespace Name Mixin selector official aLacl;a(Laay;I)Zintermediary method_3258Lnet/minecraft/class_1002;method_3258(Lnet/minecraft/class_988;I)Znamed onButtonClickLnet/minecraft/screen/ScreenHandler;onButtonClick(Lnet/minecraft/entity/player/PlayerEntity;I)Z
-
method_3255
- Mappings:
Namespace Name Mixin selector official aLacl;a(Lrc;I)Ladl;intermediary method_3255Lnet/minecraft/class_1002;method_3255(Lnet/minecraft/class_849;I)Lnet/minecraft/class_1026;named method_3255Lnet/minecraft/screen/ScreenHandler;method_3255(Lnet/minecraft/inventory/Inventory;I)Lnet/minecraft/inventory/slot/Slot;
-
getSlot
- Mappings:
Namespace Name Mixin selector official aLacl;a(I)Ladl;intermediary method_3251Lnet/minecraft/class_1002;method_3251(I)Lnet/minecraft/class_1026;named getSlotLnet/minecraft/screen/ScreenHandler;getSlot(I)Lnet/minecraft/inventory/slot/Slot;
-
transferSlot
- Mappings:
Namespace Name Mixin selector official bLacl;b(Laay;I)Lafj;intermediary method_3265Lnet/minecraft/class_1002;method_3265(Lnet/minecraft/class_988;I)Lnet/minecraft/class_1071;named transferSlotLnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
-
method_3252
- Mappings:
Namespace Name Mixin selector official aLacl;a(IILacq;Laay;)Lafj;intermediary method_3252Lnet/minecraft/class_1002;method_3252(IILnet/minecraft/class_2679;Lnet/minecraft/class_988;)Lnet/minecraft/class_1071;named method_3252Lnet/minecraft/screen/ScreenHandler;method_3252(IILnet/minecraft/util/ItemAction;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
-
canInsertIntoSlot
- Mappings:
Namespace Name Mixin selector official aLacl;a(Lafj;Ladl;)Zintermediary method_5449Lnet/minecraft/class_1002;method_5449(Lnet/minecraft/class_1071;Lnet/minecraft/class_1026;)Znamed canInsertIntoSlotLnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/item/ItemStack;Lnet/minecraft/inventory/slot/Slot;)Z
-
onSlotClick
- Mappings:
Namespace Name Mixin selector official aLacl;a(IIZLaay;)Vintermediary method_3267Lnet/minecraft/class_1002;method_3267(IIZLnet/minecraft/class_988;)Vnamed onSlotClickLnet/minecraft/screen/ScreenHandler;onSlotClick(IIZLnet/minecraft/entity/player/PlayerEntity;)V
-
close
- Mappings:
Namespace Name Mixin selector official bLacl;b(Laay;)Vintermediary method_3257Lnet/minecraft/class_1002;method_3257(Lnet/minecraft/class_988;)Vnamed closeLnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
-
onContentChanged
- Mappings:
Namespace Name Mixin selector official aLacl;a(Lrc;)Vintermediary method_3254Lnet/minecraft/class_1002;method_3254(Lnet/minecraft/class_849;)Vnamed onContentChangedLnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
-
setStackInSlot
- Mappings:
Namespace Name Mixin selector official aLacl;a(ILafj;)Vintermediary method_3253Lnet/minecraft/class_1002;method_3253(ILnet/minecraft/class_1071;)Vnamed setStackInSlotLnet/minecraft/screen/ScreenHandler;setStackInSlot(ILnet/minecraft/item/ItemStack;)V
-
method_13642
- Mappings:
Namespace Name Mixin selector official aLacl;a(Ljava/util/List;)Vintermediary method_13642Lnet/minecraft/class_1002;method_13642(Ljava/util/List;)Vnamed method_13642Lnet/minecraft/screen/ScreenHandler;method_13642(Ljava/util/List;)V
-
setProperty
- Mappings:
Namespace Name Mixin selector official bLacl;b(II)Vintermediary method_3266Lnet/minecraft/class_1002;method_3266(II)Vnamed setPropertyLnet/minecraft/screen/ScreenHandler;setProperty(II)V
-
getNextActionId
- Mappings:
Namespace Name Mixin selector official aLacl;a(Laax;)Sintermediary method_3256Lnet/minecraft/class_1002;method_3256(Lnet/minecraft/class_987;)Snamed getNextActionIdLnet/minecraft/screen/ScreenHandler;getNextActionId(Lnet/minecraft/entity/player/PlayerInventory;)S
-
isNotRestricted
- Mappings:
Namespace Name Mixin selector official cLacl;c(Laay;)Zintermediary method_3268Lnet/minecraft/class_1002;method_3268(Lnet/minecraft/class_988;)Znamed isNotRestrictedLnet/minecraft/screen/ScreenHandler;isNotRestricted(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
setPlayerRestriction
- Mappings:
Namespace Name Mixin selector official aLacl;a(Laay;Z)Vintermediary method_3259Lnet/minecraft/class_1002;method_3259(Lnet/minecraft/class_988;Z)Vnamed setPlayerRestrictionLnet/minecraft/screen/ScreenHandler;setPlayerRestriction(Lnet/minecraft/entity/player/PlayerEntity;Z)V
-
canUse
- Mappings:
Namespace Name Mixin selector official aLacl;a(Laay;)Zintermediary method_3269Lnet/minecraft/class_1002;method_3269(Lnet/minecraft/class_988;)Znamed canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
insertItem
- Mappings:
Namespace Name Mixin selector official aLacl;a(Lafj;IIZ)Zintermediary method_3262Lnet/minecraft/class_1002;method_3262(Lnet/minecraft/class_1071;IIZ)Znamed insertItemLnet/minecraft/screen/ScreenHandler;insertItem(Lnet/minecraft/item/ItemStack;IIZ)Z
-
unpackQuickCraftStage
public static int unpackQuickCraftStage(int clickData) - Mappings:
Namespace Name Mixin selector official bLacl;b(I)Iintermediary method_5450Lnet/minecraft/class_1002;method_5450(I)Inamed unpackQuickCraftStageLnet/minecraft/screen/ScreenHandler;unpackQuickCraftStage(I)I
-
unpackButtonId
public static int unpackButtonId(int clickData) - Mappings:
Namespace Name Mixin selector official cLacl;c(I)Iintermediary method_5453Lnet/minecraft/class_1002;method_5453(I)Inamed unpackButtonIdLnet/minecraft/screen/ScreenHandler;unpackButtonId(I)I
-
packClickData
- Mappings:
Namespace Name Mixin selector official dLacl;d(II)Iintermediary method_5456Lnet/minecraft/class_1002;method_5456(II)Inamed packClickDataLnet/minecraft/screen/ScreenHandler;packClickData(II)I
-
shouldQuickCraftContinue
- Mappings:
Namespace Name Mixin selector official aLacl;a(ILaay;)Zintermediary method_11255Lnet/minecraft/class_1002;method_11255(ILnet/minecraft/class_988;)Znamed shouldQuickCraftContinueLnet/minecraft/screen/ScreenHandler;shouldQuickCraftContinue(ILnet/minecraft/entity/player/PlayerEntity;)Z
-
endQuickCraft
protected void endQuickCraft()- Mappings:
Namespace Name Mixin selector official dLacl;d()Vintermediary method_5454Lnet/minecraft/class_1002;method_5454()Vnamed endQuickCraftLnet/minecraft/screen/ScreenHandler;endQuickCraft()V
-
canInsertItemIntoSlot
- Mappings:
Namespace Name Mixin selector official aLacl;a(Ladl;Lafj;Z)Zintermediary method_5448Lnet/minecraft/class_1002;method_5448(Lnet/minecraft/class_1026;Lnet/minecraft/class_1071;Z)Znamed canInsertItemIntoSlotLnet/minecraft/screen/ScreenHandler;canInsertItemIntoSlot(Lnet/minecraft/inventory/slot/Slot;Lnet/minecraft/item/ItemStack;Z)Z
-
calculateStackSize
- Mappings:
Namespace Name Mixin selector official aLacl;a(Ljava/util/Set;ILafj;I)Vintermediary method_5447Lnet/minecraft/class_1002;method_5447(Ljava/util/Set;ILnet/minecraft/class_1071;I)Vnamed calculateStackSizeLnet/minecraft/screen/ScreenHandler;calculateStackSize(Ljava/util/Set;ILnet/minecraft/item/ItemStack;I)V
-
canInsertIntoSlot
- Mappings:
Namespace Name Mixin selector official bLacl;b(Ladl;)Zintermediary method_5452Lnet/minecraft/class_1002;method_5452(Lnet/minecraft/class_1026;)Znamed canInsertIntoSlotLnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/inventory/slot/Slot;)Z
-
calculateComparatorOutput
- Mappings:
Namespace Name Mixin selector official aLacl;a(Lasc;)Iintermediary method_11256Lnet/minecraft/class_1002;method_11256(Lnet/minecraft/class_226;)Inamed calculateComparatorOutputLnet/minecraft/screen/ScreenHandler;calculateComparatorOutput(Lnet/minecraft/block/entity/BlockEntity;)I
-
calculateComparatorOutput
- Mappings:
Namespace Name Mixin selector official bLacl;b(Lrc;)Iintermediary method_5451Lnet/minecraft/class_1002;method_5451(Lnet/minecraft/class_849;)Inamed calculateComparatorOutputLnet/minecraft/screen/ScreenHandler;calculateComparatorOutput(Lnet/minecraft/inventory/Inventory;)I
-