Class SpectatorGui
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.spectator.SpectatorGui
- All Implemented Interfaces:
SpectatorMenuListener
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final long
private static final long
private long
private SpectatorMenu
private final Minecraft
static final ResourceLocation
private static final ResourceLocation
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate float
boolean
void
onHotbarSelected
(int p_94772_) void
void
onMouseScrolled
(int p_205381_) void
onSpectatorMenuClosed
(SpectatorMenu p_94792_) void
renderHotbar
(PoseStack p_193838_) protected void
renderPage
(PoseStack p_94779_, float p_94780_, int p_94781_, int p_94782_, SpectatorPage p_94783_) private void
renderSlot
(PoseStack p_94785_, int p_94786_, int p_94787_, float p_94788_, float p_94789_, SpectatorMenuItem p_94790_) void
renderTooltip
(PoseStack p_94774_) Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
Field Details
-
WIDGETS_LOCATION
-
SPECTATOR_LOCATION
-
FADE_OUT_DELAY
private static final long FADE_OUT_DELAY- See Also:
-
FADE_OUT_TIME
private static final long FADE_OUT_TIME- See Also:
-
minecraft
-
lastSelectionTime
private long lastSelectionTime
-
-
Constructor Details
-
SpectatorGui
-
-
Method Details
-
onHotbarSelected
public void onHotbarSelected(int p_94772_) -
getHotbarAlpha
private float getHotbarAlpha() -
renderHotbar
-
renderPage
protected void renderPage(PoseStack p_94779_, float p_94780_, int p_94781_, int p_94782_, SpectatorPage p_94783_) -
renderSlot
private void renderSlot(PoseStack p_94785_, int p_94786_, int p_94787_, float p_94788_, float p_94789_, SpectatorMenuItem p_94790_) -
renderTooltip
-
onSpectatorMenuClosed
- Specified by:
onSpectatorMenuClosed
in interfaceSpectatorMenuListener
-
isMenuActive
public boolean isMenuActive() -
onMouseScrolled
public void onMouseScrolled(int p_205381_) -
onMouseMiddleClick
public void onMouseMiddleClick()
-