public class GuiSpectator extends Gui implements ISpectatorMenuRecipient
Modifier and Type | Field and Description |
---|---|
private long |
lastSelectionTime |
private Minecraft |
mc |
private SpectatorMenu |
menu |
static ResourceLocation |
SPECTATOR_WIDGETS |
private static ResourceLocation |
WIDGETS |
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiSpectator(Minecraft mcIn) |
Modifier and Type | Method and Description |
---|---|
private float |
getHotbarAlpha() |
boolean |
isMenuActive() |
void |
onHotbarSelected(int p_175260_1_) |
void |
onMiddleClick() |
void |
onMouseScroll(int p_175259_1_) |
void |
onSpectatorMenuClosed(SpectatorMenu menu) |
protected void |
renderPage(ScaledResolution p_175258_1_,
float p_175258_2_,
int p_175258_3_,
float p_175258_4_,
SpectatorDetails p_175258_5_) |
void |
renderSelectedItem(ScaledResolution p_175263_1_) |
private void |
renderSlot(int p_175266_1_,
int p_175266_2_,
float p_175266_3_,
float p_175266_4_,
ISpectatorMenuObject p_175266_5_) |
void |
renderTooltip(ScaledResolution p_175264_1_,
float p_175264_2_) |
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private static final ResourceLocation WIDGETS
public static final ResourceLocation SPECTATOR_WIDGETS
private final Minecraft mc
private long lastSelectionTime
private SpectatorMenu menu
public GuiSpectator(Minecraft mcIn)
public void onHotbarSelected(int p_175260_1_)
private float getHotbarAlpha()
public void renderTooltip(ScaledResolution p_175264_1_, float p_175264_2_)
protected void renderPage(ScaledResolution p_175258_1_, float p_175258_2_, int p_175258_3_, float p_175258_4_, SpectatorDetails p_175258_5_)
private void renderSlot(int p_175266_1_, int p_175266_2_, float p_175266_3_, float p_175266_4_, ISpectatorMenuObject p_175266_5_)
public void renderSelectedItem(ScaledResolution p_175263_1_)
public void onSpectatorMenuClosed(SpectatorMenu menu)
onSpectatorMenuClosed
in interface ISpectatorMenuRecipient
public boolean isMenuActive()
public void onMouseScroll(int p_175259_1_)
public void onMiddleClick()