Package net.minecraft.client.gui
Class SpectatorGui
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.SpectatorGui
-
- All Implemented Interfaces:
ISpectatorMenuRecipient
public class SpectatorGui extends AbstractGui implements ISpectatorMenuRecipient
-
-
Field Summary
Fields Modifier and Type Field Description private long
lastSelectionTime
private SpectatorMenu
menu
private Minecraft
minecraft
static ResourceLocation
SPECTATOR_LOCATION
private static ResourceLocation
WIDGETS_LOCATION
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description SpectatorGui(Minecraft p_i45527_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private float
getHotbarAlpha()
boolean
isMenuActive()
void
onHotbarSelected(int p_175260_1_)
void
onMouseMiddleClick()
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 Detail
-
WIDGETS_LOCATION
private static final ResourceLocation WIDGETS_LOCATION
-
SPECTATOR_LOCATION
public static final ResourceLocation SPECTATOR_LOCATION
-
minecraft
private final Minecraft minecraft
-
lastSelectionTime
private long lastSelectionTime
-
menu
private SpectatorMenu menu
-
-
Constructor Detail
-
SpectatorGui
public SpectatorGui(Minecraft p_i45527_1_)
-
-
Method Detail
-
onHotbarSelected
public void onHotbarSelected(int p_175260_1_)
-
getHotbarAlpha
private float getHotbarAlpha()
-
renderHotbar
public void renderHotbar(MatrixStack p_238528_1_, float p_238528_2_)
-
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
public void renderTooltip(MatrixStack p_238527_1_)
-
onSpectatorMenuClosed
public void onSpectatorMenuClosed(SpectatorMenu p_175257_1_)
- Specified by:
onSpectatorMenuClosed
in interfaceISpectatorMenuRecipient
-
isMenuActive
public boolean isMenuActive()
-
onMouseScrolled
public void onMouseScrolled(double p_195621_1_)
-
onMouseMiddleClick
public void onMouseMiddleClick()
-
-