Interface ExtendedScreenHandlerType.ExtendedFactory<T extends ScreenHandler,D>
- Type Parameters:
T- the type of screen handlers createdD- 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 TypeMethodDescriptioncreate(int syncId, PlayerInventory inventory, D data) Creates a new screen handler with additional screen opening data.
-
Method Details
-
create
Creates a new screen handler with additional screen opening data.- Parameters:
syncId- the synchronization IDinventory- the player inventorydata- the synced data- Returns:
- the created screen handler
-