Package net.minecraft.screen
Interface ScreenHandlerListener
- All Known Implementing Classes:
ServerPlayerEntity
public interface ScreenHandlerListener
- Mappings:
Namespace Name intermediary net/minecraft/class_633glue class_99server cpclient ecnamed net/minecraft/screen/ScreenHandlerListener
-
Method Summary
Modifier and TypeMethodDescriptionvoidonContentsUpdate(ScreenHandler handler, List stacks) Update contents of all slots, in a list of itemStacks the size of the screenHandler's inventory.voidonPropertyUpdate(ScreenHandler handler, int syncId, int trackedValue) Passes integers from Server Screen Handler to Client Screen Handler so that animations can be visible, e.g.voidonSlotUpdate(ScreenHandler handler, int slot, ItemStack stack) Update a ScreenHandler's slot with a different item stack
-
Method Details
-
onContentsUpdate
Update contents of all slots, in a list of itemStacks the size of the screenHandler's inventory.- Mappings:
Namespace Name Mixin selector intermediary method_2101Lnet/minecraft/class_633;method_2101(Lnet/minecraft/class_71;Ljava/util/List;)Vglue method_303Lclass_99;method_303(Lclass_94;Ljava/util/List;)Vserver aLcp;a(Lcl;Ljava/util/List;)Vclient method_2101Lec;method_2101(Ldw;Ljava/util/List;)Vnamed onContentsUpdateLnet/minecraft/screen/ScreenHandlerListener;onContentsUpdate(Lnet/minecraft/screen/ScreenHandler;Ljava/util/List;)V
-
onSlotUpdate
Update a ScreenHandler's slot with a different item stack- Mappings:
Namespace Name Mixin selector intermediary method_2100Lnet/minecraft/class_633;method_2100(Lnet/minecraft/class_71;ILnet/minecraft/class_31;)Vglue method_302Lclass_99;method_302(Lclass_94;ILclass_224;)Vserver aLcp;a(Lcl;ILfy;)Vclient aLec;a(Ldw;ILiz;)Vnamed onSlotUpdateLnet/minecraft/screen/ScreenHandlerListener;onSlotUpdate(Lnet/minecraft/screen/ScreenHandler;ILnet/minecraft/item/ItemStack;)V
-
onPropertyUpdate
Passes integers from Server Screen Handler to Client Screen Handler so that animations can be visible, e.g. Smelting Progress, Fuel left for rendering- Parameters:
syncId- is an arbitrary integer specific to this screenHandler, used as an identifier for a specific property. Set this to any int, as long as it is consistent. Normally starts at 0 going uptrackedValue- is an integer that is synced to the client- Mappings:
Namespace Name Mixin selector intermediary method_2099Lnet/minecraft/class_633;method_2099(Lnet/minecraft/class_71;II)Vglue method_301Lclass_99;method_301(Lclass_94;II)Vserver aLcp;a(Lcl;II)Vclient aLec;a(Ldw;II)Vnamed onPropertyUpdateLnet/minecraft/screen/ScreenHandlerListener;onPropertyUpdate(Lnet/minecraft/screen/ScreenHandler;II)V
-