Interface ScreenRegistry.Factory<H extends ScreenHandler,S extends Screen & ScreenHandlerProvider<H>>
- Type Parameters:
H- the screen handler typeS- the screen type
- Enclosing class:
ScreenRegistry
- 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 ScreenRegistry.Factory<H extends ScreenHandler,S extends Screen & ScreenHandlerProvider<H>>
A factory for handled screens.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(H handler, PlayerInventory inventory, Text title) Creates a new handled screen.
-
Method Details
-
create
Creates a new handled screen.- Parameters:
handler- the screen handlerinventory- the player inventorytitle- the title of the screen- Returns:
- the created screen
-