Package net.minecraft.screen
Class SimpleNamedScreenHandlerFactory
java.lang.Object
net.minecraft.screen.SimpleNamedScreenHandlerFactory
- All Implemented Interfaces:
NamedScreenHandlerFactory,ScreenHandlerFactory
public final class SimpleNamedScreenHandlerFactory extends Object implements NamedScreenHandlerFactory
-
Field Summary
Fields Modifier and Type Field Description private ScreenHandlerFactorybaseFactoryprivate Textname -
Constructor Summary
Constructors Constructor Description SimpleNamedScreenHandlerFactory(ScreenHandlerFactory baseFactory, Text name) -
Method Summary
Modifier and Type Method Description ScreenHandlercreateMenu(int syncId, PlayerInventory inv, PlayerEntity player)TextgetDisplayName()Returns the title of this screen handler; will be a part of the open screen packet sent to the client.
-
Field Details
-
name
-
baseFactory
-
-
Constructor Details
-
SimpleNamedScreenHandlerFactory
-
-
Method Details
-
getDisplayName
Returns the title of this screen handler; will be a part of the open screen packet sent to the client.- Specified by:
getDisplayNamein interfaceNamedScreenHandlerFactory
-
createMenu
- Specified by:
createMenuin interfaceScreenHandlerFactory
-