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 Details

    • 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
  • Constructor Details

    • SpectatorGui

      public SpectatorGui(Minecraft p_i45527_1_)
  • Method Details

    • 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 interface ISpectatorMenuRecipient
    • isMenuActive

      public boolean isMenuActive()
    • onMouseScrolled

      public void onMouseScrolled(double p_195621_1_)
    • onMouseMiddleClick

      public void onMouseMiddleClick()