public class SpectatorGui extends AbstractGui 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 |
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
SpectatorGui(Minecraft mcIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
func_214456_a(float p_214456_1_,
int p_214456_2_,
int p_214456_3_,
SpectatorDetails p_214456_4_) |
private float |
getHotbarAlpha() |
boolean |
isMenuActive() |
void |
onHotbarSelected(int p_175260_1_) |
void |
onMiddleClick() |
void |
onMouseScroll(double amount) |
void |
onSpectatorMenuClosed(SpectatorMenu menu) |
void |
renderSelectedItem() |
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(float p_195622_1_) |
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
private static final ResourceLocation WIDGETS
public static final ResourceLocation SPECTATOR_WIDGETS
private final Minecraft mc
private long lastSelectionTime
private SpectatorMenu menu
public SpectatorGui(Minecraft mcIn)
public void onHotbarSelected(int p_175260_1_)
private float getHotbarAlpha()
public void renderTooltip(float p_195622_1_)
protected void func_214456_a(float p_214456_1_, int p_214456_2_, int p_214456_3_, SpectatorDetails p_214456_4_)
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()
public void onSpectatorMenuClosed(SpectatorMenu menu)
onSpectatorMenuClosed
in interface ISpectatorMenuRecipient
public boolean isMenuActive()
public void onMouseScroll(double amount)
public void onMiddleClick()