public final class SimpleNamedScreenHandlerFactory extends Object implements NamedScreenHandlerFactory
Modifier and Type | Field and Description |
---|---|
private ScreenHandlerFactory |
baseFactory |
private Text |
name |
Constructor and Description |
---|
SimpleNamedScreenHandlerFactory(ScreenHandlerFactory baseFactory,
Text name) |
Modifier and Type | Method and Description |
---|---|
ScreenHandler |
createMenu(int syncId,
PlayerInventory inv,
PlayerEntity player) |
Text |
getDisplayName()
Returns the title of this screen handler; will be a part of the open
screen packet sent to the client.
|
private final Text name
private final ScreenHandlerFactory baseFactory
public SimpleNamedScreenHandlerFactory(ScreenHandlerFactory baseFactory, Text name)
public Text getDisplayName()
getDisplayName
in interface NamedScreenHandlerFactory
public ScreenHandler createMenu(int syncId, PlayerInventory inv, PlayerEntity player)
createMenu
in interface ScreenHandlerFactory