@Environment(value=CLIENT) public class SpectatorMenu extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SpectatorMenu.ChangePageSpectatorMenuCommand |
(package private) static class |
SpectatorMenu.CloseSpectatorMenuCommand |
Modifier and Type | Field and Description |
---|---|
static SpectatorMenuCommand |
BLANK_COMMAND |
private static SpectatorMenuCommand |
CLOSE_COMMAND |
private SpectatorMenuCloseCallback |
closeCallback |
private SpectatorMenuCommandGroup |
currentGroup |
private static SpectatorMenuCommand |
DISABLED_NEXT_PAGE_COMMAND |
private static Text |
field_26613 |
private static Text |
field_26614 |
private static Text |
field_26615 |
private static SpectatorMenuCommand |
NEXT_PAGE_COMMAND |
private int |
page |
private static SpectatorMenuCommand |
PREVIOUS_PAGE_COMMAND |
private int |
selectedSlot |
Constructor and Description |
---|
SpectatorMenu(SpectatorMenuCloseCallback closeCallback) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
SpectatorMenuCommand |
getCommand(int slot) |
List<SpectatorMenuCommand> |
getCommands() |
SpectatorMenuCommandGroup |
getCurrentGroup() |
SpectatorMenuState |
getCurrentState() |
SpectatorMenuCommand |
getSelectedCommand() |
int |
getSelectedSlot() |
void |
selectElement(SpectatorMenuCommandGroup group) |
void |
useCommand(int slot) |
private static final SpectatorMenuCommand CLOSE_COMMAND
private static final SpectatorMenuCommand PREVIOUS_PAGE_COMMAND
private static final SpectatorMenuCommand NEXT_PAGE_COMMAND
private static final SpectatorMenuCommand DISABLED_NEXT_PAGE_COMMAND
private static final Text field_26613
private static final Text field_26614
private static final Text field_26615
public static final SpectatorMenuCommand BLANK_COMMAND
private final SpectatorMenuCloseCallback closeCallback
private SpectatorMenuCommandGroup currentGroup
private int selectedSlot
private int page
public SpectatorMenu(SpectatorMenuCloseCallback closeCallback)
public SpectatorMenuCommand getCommand(int slot)
public List<SpectatorMenuCommand> getCommands()
public SpectatorMenuCommand getSelectedCommand()
public SpectatorMenuCommandGroup getCurrentGroup()
public void useCommand(int slot)
public void close()
public int getSelectedSlot()
public void selectElement(SpectatorMenuCommandGroup group)
public SpectatorMenuState getCurrentState()