Interface ScreenHandlerListener

All Known Implementing Classes:
ServerPlayerEntity

public interface ScreenHandlerListener
Mappings:
Namespace Name
intermediary net/minecraft/class_633
glue class_99
server cp
client ec
named net/minecraft/screen/ScreenHandlerListener
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Update contents of all slots, in a list of itemStacks the size of the screenHandler's inventory.
    void
    onPropertyUpdate(ScreenHandler handler, int syncId, int trackedValue)
    Passes integers from Server Screen Handler to Client Screen Handler so that animations can be visible, e.g.
    void
    onSlotUpdate(ScreenHandler handler, int slot, ItemStack stack)
    Update a ScreenHandler's slot with a different item stack
  • Method Details

    • onContentsUpdate

      @Environment(SERVER) void onContentsUpdate(ScreenHandler handler, List stacks)
      Update contents of all slots, in a list of itemStacks the size of the screenHandler's inventory.
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2101 Lnet/minecraft/class_633;method_2101(Lnet/minecraft/class_71;Ljava/util/List;)V
      glue method_303 Lclass_99;method_303(Lclass_94;Ljava/util/List;)V
      server a Lcp;a(Lcl;Ljava/util/List;)V
      client method_2101 Lec;method_2101(Ldw;Ljava/util/List;)V
      named onContentsUpdate Lnet/minecraft/screen/ScreenHandlerListener;onContentsUpdate(Lnet/minecraft/screen/ScreenHandler;Ljava/util/List;)V
    • onSlotUpdate

      void onSlotUpdate(ScreenHandler handler, int slot, ItemStack stack)
      Update a ScreenHandler's slot with a different item stack
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2100 Lnet/minecraft/class_633;method_2100(Lnet/minecraft/class_71;ILnet/minecraft/class_31;)V
      glue method_302 Lclass_99;method_302(Lclass_94;ILclass_224;)V
      server a Lcp;a(Lcl;ILfy;)V
      client a Lec;a(Ldw;ILiz;)V
      named onSlotUpdate Lnet/minecraft/screen/ScreenHandlerListener;onSlotUpdate(Lnet/minecraft/screen/ScreenHandler;ILnet/minecraft/item/ItemStack;)V
    • onPropertyUpdate

      void onPropertyUpdate(ScreenHandler handler, int syncId, int trackedValue)
      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 up
      trackedValue - is an integer that is synced to the client
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2099 Lnet/minecraft/class_633;method_2099(Lnet/minecraft/class_71;II)V
      glue method_301 Lclass_99;method_301(Lclass_94;II)V
      server a Lcp;a(Lcl;II)V
      client a Lec;a(Ldw;II)V
      named onPropertyUpdate Lnet/minecraft/screen/ScreenHandlerListener;onPropertyUpdate(Lnet/minecraft/screen/ScreenHandler;II)V