Class SpectatorHud

java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.hud.SpectatorHud
All Implemented Interfaces:
SpectatorMenuCloseCallback

@Environment(CLIENT)
public class SpectatorHud
extends DrawableHelper
implements SpectatorMenuCloseCallback
Mappings:
Namespace Name
official dsw
intermediary net/minecraft/class_365
named net/minecraft/client/gui/hud/SpectatorHud
  • Field Details

    • WIDGETS_TEXTURE

      private static final Identifier WIDGETS_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official b Ldsw;b:Lwb;
      intermediary field_2197 Lnet/minecraft/class_365;field_2197:Lnet/minecraft/class_2960;
      named WIDGETS_TEXTURE Lnet/minecraft/client/gui/hud/SpectatorHud;WIDGETS_TEXTURE:Lnet/minecraft/util/Identifier;
    • SPECTATOR_TEXTURE

      public static final Identifier SPECTATOR_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official a Ldsw;a:Lwb;
      intermediary field_2199 Lnet/minecraft/class_365;field_2199:Lnet/minecraft/class_2960;
      named SPECTATOR_TEXTURE Lnet/minecraft/client/gui/hud/SpectatorHud;SPECTATOR_TEXTURE:Lnet/minecraft/util/Identifier;
    • client

      private final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      official c Ldsw;c:Ldqk;
      intermediary field_2201 Lnet/minecraft/class_365;field_2201:Lnet/minecraft/class_310;
      named client Lnet/minecraft/client/gui/hud/SpectatorHud;client:Lnet/minecraft/client/MinecraftClient;
    • lastInteractionTime

      private long lastInteractionTime
      Mappings:
      Namespace Name Mixin selector
      official d Ldsw;d:J
      intermediary field_2198 Lnet/minecraft/class_365;field_2198:J
      named lastInteractionTime Lnet/minecraft/client/gui/hud/SpectatorHud;lastInteractionTime:J
    • spectatorMenu

      private SpectatorMenu spectatorMenu
      Mappings:
      Namespace Name Mixin selector
      official e Ldsw;e:Ldze;
      intermediary field_2200 Lnet/minecraft/class_365;field_2200:Lnet/minecraft/class_531;
      named spectatorMenu Lnet/minecraft/client/gui/hud/SpectatorHud;spectatorMenu:Lnet/minecraft/client/gui/hud/spectator/SpectatorMenu;
  • Constructor Details

    • SpectatorHud

      public SpectatorHud​(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldsw;<init>(Ldqk;)V
      intermediary <init> Lnet/minecraft/class_365;<init>(Lnet/minecraft/class_310;)V
      named <init> Lnet/minecraft/client/gui/hud/SpectatorHud;<init>(Lnet/minecraft/client/MinecraftClient;)V
  • Method Details

    • selectSlot

      public void selectSlot​(int slot)
      Mappings:
      Namespace Name Mixin selector
      official a Ldsw;a(I)V
      intermediary method_1977 Lnet/minecraft/class_365;method_1977(I)V
      named selectSlot Lnet/minecraft/client/gui/hud/SpectatorHud;selectSlot(I)V
    • getSpectatorMenuHeight

      private float getSpectatorMenuHeight()
      Mappings:
      Namespace Name Mixin selector
      official c Ldsw;c()F
      intermediary method_1981 Lnet/minecraft/class_365;method_1981()F
      named getSpectatorMenuHeight Lnet/minecraft/client/gui/hud/SpectatorHud;getSpectatorMenuHeight()F
    • render

      public void render​(MatrixStack matrices, float float2)
      Mappings:
      Namespace Name Mixin selector
      official a Ldsw;a(Ldlr;F)V
      intermediary method_1978 Lnet/minecraft/class_365;method_1978(Lnet/minecraft/class_4587;F)V
      named render Lnet/minecraft/client/gui/hud/SpectatorHud;render(Lnet/minecraft/client/util/math/MatrixStack;F)V
    • renderSpectatorMenu

      protected void renderSpectatorMenu​(MatrixStack matrices, float float2, int int2, int int3, SpectatorMenuState spectatorMenuState)
      Mappings:
      Namespace Name Mixin selector
      official a Ldsw;a(Ldlr;FIILdzi;)V
      intermediary method_1975 Lnet/minecraft/class_365;method_1975(Lnet/minecraft/class_4587;FIILnet/minecraft/class_539;)V
      named renderSpectatorMenu Lnet/minecraft/client/gui/hud/SpectatorHud;renderSpectatorMenu(Lnet/minecraft/client/util/math/MatrixStack;FIILnet/minecraft/client/gui/hud/spectator/SpectatorMenuState;)V
    • renderSpectatorCommand

      private void renderSpectatorCommand​(MatrixStack matrices, int int2, int int3, float float2, float float3, SpectatorMenuCommand spectatorMenuCommand)
      Mappings:
      Namespace Name Mixin selector
      official a Ldsw;a(Ldlr;IIFFLdzg;)V
      intermediary method_1982 Lnet/minecraft/class_365;method_1982(Lnet/minecraft/class_4587;IIFFLnet/minecraft/class_537;)V
      named renderSpectatorCommand Lnet/minecraft/client/gui/hud/SpectatorHud;renderSpectatorCommand(Lnet/minecraft/client/util/math/MatrixStack;IIFFLnet/minecraft/client/gui/hud/spectator/SpectatorMenuCommand;)V
    • render

      public void render​(MatrixStack matrices)
      Mappings:
      Namespace Name Mixin selector
      official a Ldsw;a(Ldlr;)V
      intermediary method_1979 Lnet/minecraft/class_365;method_1979(Lnet/minecraft/class_4587;)V
      named render Lnet/minecraft/client/gui/hud/SpectatorHud;render(Lnet/minecraft/client/util/math/MatrixStack;)V
    • close

      public void close​(SpectatorMenu menu)
      Specified by:
      close in interface SpectatorMenuCloseCallback
      Mappings:
      Namespace Name Mixin selector
      official a Ldzh;a(Ldze;)V
      intermediary method_2782 Lnet/minecraft/class_536;method_2782(Lnet/minecraft/class_531;)V
      named close Lnet/minecraft/client/gui/hud/spectator/SpectatorMenuCloseCallback;close(Lnet/minecraft/client/gui/hud/spectator/SpectatorMenu;)V
    • isOpen

      public boolean isOpen()
      Mappings:
      Namespace Name Mixin selector
      official a Ldsw;a()Z
      intermediary method_1980 Lnet/minecraft/class_365;method_1980()Z
      named isOpen Lnet/minecraft/client/gui/hud/SpectatorHud;isOpen()Z
    • cycleSlot

      public void cycleSlot​(double offset)
      Mappings:
      Namespace Name Mixin selector
      official a Ldsw;a(D)V
      intermediary method_1976 Lnet/minecraft/class_365;method_1976(D)V
      named cycleSlot Lnet/minecraft/client/gui/hud/SpectatorHud;cycleSlot(D)V
    • useSelectedCommand

      public void useSelectedCommand()
      Mappings:
      Namespace Name Mixin selector
      official b Ldsw;b()V
      intermediary method_1983 Lnet/minecraft/class_365;method_1983()V
      named useSelectedCommand Lnet/minecraft/client/gui/hud/SpectatorHud;useSelectedCommand()V