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 TextgetName()booleanisEnabled()voidrenderIcon(MatrixStack matrixStack, float float2, int int2)voiduse(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:
usein interfaceSpectatorMenuCommand
-
getName
- Specified by:
getNamein interfaceSpectatorMenuCommand
-
renderIcon
- Specified by:
renderIconin interfaceSpectatorMenuCommand
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceSpectatorMenuCommand
-