Class SpectatorGui
java.lang.Object
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
-
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
(GuiGraphics p_281458_) protected void
renderPage
(GuiGraphics p_282945_, float p_281688_, int p_281726_, int p_281730_, SpectatorPage p_282361_) private void
renderSlot
(GuiGraphics p_281411_, int p_283536_, int p_281853_, float p_282693_, float p_281955_, SpectatorMenuItem p_283370_) void
renderTooltip
(GuiGraphics p_283107_)
-
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(GuiGraphics p_282945_, float p_281688_, int p_281726_, int p_281730_, SpectatorPage p_282361_) -
renderSlot
private void renderSlot(GuiGraphics p_281411_, int p_283536_, int p_281853_, float p_282693_, float p_281955_, SpectatorMenuItem p_283370_) -
renderTooltip
-
onSpectatorMenuClosed
- Specified by:
onSpectatorMenuClosed
in interfaceSpectatorMenuListener
-
isMenuActive
public boolean isMenuActive() -
onMouseScrolled
public void onMouseScrolled(int p_205381_) -
onMouseMiddleClick
public void onMouseMiddleClick()
-