@Environment(value=CLIENT) public class SpectatorMenuState extends Object
Modifier and Type | Field and Description |
---|---|
private List<SpectatorMenuCommand> |
commands |
private SpectatorMenuCommandGroup |
group |
private int |
selectedSlot |
Constructor and Description |
---|
SpectatorMenuState(SpectatorMenuCommandGroup group,
List<SpectatorMenuCommand> commands,
int selectedSlot) |
Modifier and Type | Method and Description |
---|---|
SpectatorMenuCommand |
getCommand(int slot) |
int |
getSelectedSlot() |
private final SpectatorMenuCommandGroup group
private final List<SpectatorMenuCommand> commands
private final int selectedSlot
public SpectatorMenuState(SpectatorMenuCommandGroup group, List<SpectatorMenuCommand> commands, int selectedSlot)
public SpectatorMenuCommand getCommand(int slot)
public int getSelectedSlot()