Interface ExtendedScreenHandlerType.ExtendedFactory<T extends ScreenHandler,D>

Type Parameters:
T - the type of screen handlers created
D - the type of the data
Enclosing class:
ExtendedScreenHandlerType<T extends ScreenHandler,D>
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,D>
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, D data)
    Creates a new screen handler with additional screen opening data.
  • Method Details

    • create

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