Class SpectatorMenu.ChangePageSpectatorMenuCommand
java.lang.Object
net.minecraft.client.gui.hud.spectator.SpectatorMenu.ChangePageSpectatorMenuCommand
- All Implemented Interfaces:
SpectatorMenuCommand
- Enclosing class:
- SpectatorMenu
@Environment(CLIENT) static class SpectatorMenu.ChangePageSpectatorMenuCommand extends Object implements SpectatorMenuCommand
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ChangePageSpectatorMenuCommand(int direction, boolean enabled)
-
Method Summary
Modifier and Type Method Description Text
getName()
boolean
isEnabled()
void
renderIcon(MatrixStack matrixStack, float float2, int int2)
void
use(SpectatorMenu menu)
-
Field Details
-
direction
private final int direction -
enabled
private final boolean enabled
-
-
Constructor Details
-
ChangePageSpectatorMenuCommand
public ChangePageSpectatorMenuCommand(int direction, boolean enabled)
-
-
Method Details
-
use
- Specified by:
use
in interfaceSpectatorMenuCommand
-
getName
- Specified by:
getName
in interfaceSpectatorMenuCommand
-
renderIcon
- Specified by:
renderIcon
in interfaceSpectatorMenuCommand
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceSpectatorMenuCommand
-