@Environment(value=CLIENT) public class SpectatorHud extends DrawableHelper implements SpectatorMenuCloseCallback
Modifier and Type | Field and Description |
---|---|
private MinecraftClient |
client |
private long |
lastInteractionTime |
static Identifier |
SPECTATOR_TEXTURE |
private SpectatorMenu |
spectatorMenu |
private static Identifier |
WIDGETS_TEXTURE |
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
SpectatorHud(MinecraftClient client) |
Modifier and Type | Method and Description |
---|---|
void |
close(SpectatorMenu menu) |
void |
cycleSlot(double offset) |
private float |
getSpectatorMenuHeight() |
boolean |
isOpen() |
void |
render(MatrixStack matrixStack) |
void |
render(MatrixStack matrixStack,
float float2) |
private void |
renderSpectatorCommand(MatrixStack matrixStack,
int int2,
int int3,
float float2,
float float3,
SpectatorMenuCommand spectatorMenuCommand) |
protected void |
renderSpectatorMenu(MatrixStack matrixStack,
float float2,
int int2,
int int3,
SpectatorMenuState spectatorMenuState) |
void |
selectSlot(int slot) |
void |
useSelectedCommand() |
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
private static final Identifier WIDGETS_TEXTURE
public static final Identifier SPECTATOR_TEXTURE
private final MinecraftClient client
private long lastInteractionTime
private SpectatorMenu spectatorMenu
public SpectatorHud(MinecraftClient client)
public void selectSlot(int slot)
private float getSpectatorMenuHeight()
public void render(MatrixStack matrixStack, float float2)
protected void renderSpectatorMenu(MatrixStack matrixStack, float float2, int int2, int int3, SpectatorMenuState spectatorMenuState)
private void renderSpectatorCommand(MatrixStack matrixStack, int int2, int int3, float float2, float float3, SpectatorMenuCommand spectatorMenuCommand)
public void render(MatrixStack matrixStack)
public void close(SpectatorMenu menu)
close
in interface SpectatorMenuCloseCallback
public boolean isOpen()
public void cycleSlot(double offset)
public void useSelectedCommand()