Class SpectatorGui

java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.spectator.SpectatorGui
All Implemented Interfaces:
SpectatorMenuListener

public class SpectatorGui extends GuiComponent implements SpectatorMenuListener
  • Field Details

  • Constructor Details

    • SpectatorGui

      public SpectatorGui(Minecraft p_94767_)
  • Method Details

    • onHotbarSelected

      public void onHotbarSelected(int p_94772_)
    • getHotbarAlpha

      private float getHotbarAlpha()
    • renderHotbar

      public void renderHotbar(PoseStack p_193838_)
    • 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

      public void renderTooltip(PoseStack p_94774_)
    • onSpectatorMenuClosed

      public void onSpectatorMenuClosed(SpectatorMenu p_94792_)
      Specified by:
      onSpectatorMenuClosed in interface SpectatorMenuListener
    • isMenuActive

      public boolean isMenuActive()
    • onMouseScrolled

      public void onMouseScrolled(int p_205381_)
    • onMouseMiddleClick

      public void onMouseMiddleClick()