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 SpectatorMenuCloseCallbackcloseCallbackprivate SpectatorMenuCommandGroupcurrentGroupprivate static SpectatorMenuCommandDISABLED_NEXT_PAGE_COMMANDprivate static Textfield_26613private static Textfield_26614private static Textfield_26615private static SpectatorMenuCommandNEXT_PAGE_COMMANDprivate intpageprivate static SpectatorMenuCommandPREVIOUS_PAGE_COMMANDprivate 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
-
field_26613
-
field_26614
-
field_26615
-
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
-