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 long
private static long
private long
private SpectatorMenu
private Minecraft
static ResourceLocation
private static 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(double p_94770_)
void
onSpectatorMenuClosed(SpectatorMenu p_94792_)
void
renderHotbar(PoseStack p_94776_, float p_94777_)
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:
- Constant Field Values
-
FADE_OUT_TIME
private static final long FADE_OUT_TIME- See Also:
- Constant Field Values
-
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(double p_94770_) -
onMouseMiddleClick
public void onMouseMiddleClick()
-