Interface ExtendedScreenHandlerType.ExtendedFactory<T extends ScreenHandler>

Type Parameters:
T - the type of screen handlers created
All Known Subinterfaces:
ScreenHandlerRegistry.ExtendedClientHandlerFactory<T>
Enclosing class:
ExtendedScreenHandlerType<T extends ScreenHandler>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ExtendedScreenHandlerType.ExtendedFactory<T extends ScreenHandler>
A factory for creating screen handler instances from additional opening data. This is primarily used on the client, but can be called on the server too.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    create(int syncId, PlayerInventory inventory, PacketByteBuf buf)
    Creates a new screen handler with additional screen opening data.
  • Method Details

    • create

      T create(int syncId, PlayerInventory inventory, PacketByteBuf buf)
      Creates a new screen handler with additional screen opening data.
      Parameters:
      syncId - the synchronization ID
      inventory - the player inventory
      buf - the packet buffer
      Returns:
      the created screen handler