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 afrintermediary 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) protected voidmethod_14204(PlayerEntity playerEntity, World world, Inventory inventory) protected voidmethod_14205(World world, PlayerEntity playerEntity, CraftingInventory craftingInventory, CraftingResultInventory craftingResultInventory) method_3252(int int2, int int3, ItemAction itemAction, PlayerEntity playerEntity) method_3255(Inventory inventory, int int2) booleanonButtonClick(PlayerEntity player, int id) voidonContentChanged(Inventory inventory) 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 bLafr;b:Lfi;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 cLafr;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 dLafr;d:Iintermediary field_4088Lnet/minecraft/class_1002;field_4088:Inamed syncIdLnet/minecraft/screen/ScreenHandler;syncId:I
-
actionId
- Mappings:
Namespace Name Mixin selector official aLafr;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 fLafr;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 gLafr;g:Iintermediary field_6160Lnet/minecraft/class_1002;field_6160:Inamed quickCraftButtonLnet/minecraft/screen/ScreenHandler;quickCraftButton:I
-
quickCraftSlots
- Mappings:
Namespace Name Mixin selector official hLafr;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 eLafr;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 iLafr;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 aLafr;a(Lagr;)Lagr;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 aLafr;a(Lafx;)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 bLafr;b(Lafx;)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 aLafr;a()Lfi;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 bLafr;b()Vintermediary method_3264Lnet/minecraft/class_1002;method_3264()Vnamed sendContentUpdatesLnet/minecraft/screen/ScreenHandler;sendContentUpdates()V
-
onButtonClick
- Mappings:
Namespace Name Mixin selector official aLafr;a(Laed;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 aLafr;a(Ltv;I)Lagr;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 aLafr;a(I)Lagr;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 bLafr;b(Laed;I)Laip;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 aLafr;a(IILafw;Laed;)Laip;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 aLafr;a(Laip;Lagr;)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
-
close
- Mappings:
Namespace Name Mixin selector official bLafr;b(Laed;)Vintermediary method_3257Lnet/minecraft/class_1002;method_3257(Lnet/minecraft/class_988;)Vnamed closeLnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
-
method_14204
- Mappings:
Namespace Name Mixin selector official aLafr;a(Laed;Lamu;Ltv;)Vintermediary method_14204Lnet/minecraft/class_1002;method_14204(Lnet/minecraft/class_988;Lnet/minecraft/class_1150;Lnet/minecraft/class_849;)Vnamed method_14204Lnet/minecraft/screen/ScreenHandler;method_14204(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/inventory/Inventory;)V
-
onContentChanged
- Mappings:
Namespace Name Mixin selector official aLafr;a(Ltv;)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 aLafr;a(ILaip;)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 aLafr;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 bLafr;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 aLafr;a(Laec;)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 cLafr;c(Laed;)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 aLafr;a(Laed;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 aLafr;a(Laed;)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 aLafr;a(Laip;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 bLafr;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 cLafr;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 dLafr;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 aLafr;a(ILaed;)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 dLafr;d()Vintermediary method_5454Lnet/minecraft/class_1002;method_5454()Vnamed endQuickCraftLnet/minecraft/screen/ScreenHandler;endQuickCraft()V
-
canInsertItemIntoSlot
- Mappings:
Namespace Name Mixin selector official aLafr;a(Lagr;Laip;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 aLafr;a(Ljava/util/Set;ILaip;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 bLafr;b(Lagr;)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 aLafr;a(Lavj;)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 bLafr;b(Ltv;)Iintermediary method_5451Lnet/minecraft/class_1002;method_5451(Lnet/minecraft/class_849;)Inamed calculateComparatorOutputLnet/minecraft/screen/ScreenHandler;calculateComparatorOutput(Lnet/minecraft/inventory/Inventory;)I
-
method_14205
protected void method_14205(World world, PlayerEntity playerEntity, CraftingInventory craftingInventory, CraftingResultInventory craftingResultInventory) - Mappings:
Namespace Name Mixin selector official aLafr;a(Lamu;Laed;Lafy;Lagn;)Vintermediary method_14205Lnet/minecraft/class_1002;method_14205(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_1011;Lnet/minecraft/class_1024;)Vnamed method_14205Lnet/minecraft/screen/ScreenHandler;method_14205(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/inventory/CraftingInventory;Lnet/minecraft/inventory/CraftingResultInventory;)V
-