Package net.minecraft.client.gui
Class SpectatorGui
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.SpectatorGui
- All Implemented Interfaces:
ISpectatorMenuRecipient
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private SpectatorMenu
private final Minecraft
static final ResourceLocation
private static final ResourceLocation
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate float
boolean
void
onHotbarSelected
(int p_175260_1_) void
void
onMouseScrolled
(double p_195621_1_) void
onSpectatorMenuClosed
(SpectatorMenu p_175257_1_) void
renderHotbar
(MatrixStack p_238528_1_, float p_238528_2_) protected void
renderPage
(MatrixStack p_238529_1_, float p_238529_2_, int p_238529_3_, int p_238529_4_, SpectatorDetails p_238529_5_) private void
renderSlot
(MatrixStack p_238530_1_, int p_238530_2_, int p_238530_3_, float p_238530_4_, float p_238530_5_, ISpectatorMenuObject p_238530_6_) void
renderTooltip
(MatrixStack p_238527_1_) Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
Field Details
-
WIDGETS_LOCATION
-
SPECTATOR_LOCATION
-
minecraft
-
lastSelectionTime
private long lastSelectionTime
-
-
Constructor Details
-
SpectatorGui
-
-
Method Details
-
onHotbarSelected
public void onHotbarSelected(int p_175260_1_) -
getHotbarAlpha
private float getHotbarAlpha() -
renderHotbar
-
renderPage
protected void renderPage(MatrixStack p_238529_1_, float p_238529_2_, int p_238529_3_, int p_238529_4_, SpectatorDetails p_238529_5_) -
renderSlot
private void renderSlot(MatrixStack p_238530_1_, int p_238530_2_, int p_238530_3_, float p_238530_4_, float p_238530_5_, ISpectatorMenuObject p_238530_6_) -
renderTooltip
-
onSpectatorMenuClosed
- Specified by:
onSpectatorMenuClosed
in interfaceISpectatorMenuRecipient
-
isMenuActive
public boolean isMenuActive() -
onMouseScrolled
public void onMouseScrolled(double p_195621_1_) -
onMouseMiddleClick
public void onMouseMiddleClick()
-