Interface ScreenHandlerRegistry.SimpleClientHandlerFactory<T extends net.minecraft.screen.ScreenHandler>

Type Parameters:
T - the screen handler type
Enclosing class:
ScreenHandlerRegistry

public static interface ScreenHandlerRegistry.SimpleClientHandlerFactory<T extends net.minecraft.screen.ScreenHandler>
A factory for client-sided screen handler instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(int syncId, net.minecraft.entity.player.PlayerInventory inventory)
    Creates a new client-sided screen handler.
  • Method Details

    • create

      @Environment(CLIENT) T create(int syncId, net.minecraft.entity.player.PlayerInventory inventory)
      Creates a new client-sided screen handler.
      Parameters:
      syncId - the synchronization ID
      inventory - the player inventory
      Returns:
      the created screen handler