Class SpectatorMenu
java.lang.Object
net.minecraft.client.gui.hud.spectator.SpectatorMenu
@Environment(CLIENT) public class SpectatorMenu extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classSpectatorMenu.ChangePageSpectatorMenuCommand(package private) static classSpectatorMenu.CloseSpectatorMenuCommand -
Field Summary
Fields Modifier and Type Field Description static SpectatorMenuCommandBLANK_COMMANDprivate static SpectatorMenuCommandCLOSE_COMMANDprivate static TextCLOSE_TEXTprivate SpectatorMenuCloseCallbackcloseCallbackprivate SpectatorMenuCommandGroupcurrentGroupprivate static SpectatorMenuCommandDISABLED_NEXT_PAGE_COMMANDprivate static SpectatorMenuCommandNEXT_PAGE_COMMANDprivate static TextNEXT_PAGE_TEXTprivate intpageprivate static SpectatorMenuCommandPREVIOUS_PAGE_COMMANDprivate static TextPREVIOUS_PAGE_TEXTprivate intselectedSlot -
Constructor Summary
Constructors Constructor Description SpectatorMenu(SpectatorMenuCloseCallback closeCallback) -
Method Summary
Modifier and Type Method Description voidclose()SpectatorMenuCommandgetCommand(int slot)List<SpectatorMenuCommand>getCommands()SpectatorMenuCommandGroupgetCurrentGroup()SpectatorMenuStategetCurrentState()SpectatorMenuCommandgetSelectedCommand()intgetSelectedSlot()voidselectElement(SpectatorMenuCommandGroup group)voiduseCommand(int slot)
-
Field Details
-
CLOSE_COMMAND
-
PREVIOUS_PAGE_COMMAND
-
NEXT_PAGE_COMMAND
-
DISABLED_NEXT_PAGE_COMMAND
-
CLOSE_TEXT
-
PREVIOUS_PAGE_TEXT
-
NEXT_PAGE_TEXT
-
BLANK_COMMAND
-
closeCallback
-
currentGroup
-
selectedSlot
private int selectedSlot -
page
private int page
-
-
Constructor Details
-
SpectatorMenu
-
-
Method Details
-
getCommand
-
getCommands
-
getSelectedCommand
-
getCurrentGroup
-
useCommand
public void useCommand(int slot) -
close
public void close() -
getSelectedSlot
public int getSelectedSlot() -
selectElement
-
getCurrentState
-