Class ForgeGui

java.lang.Object
net.minecraft.client.gui.Gui
net.minecraftforge.client.gui.overlay.ForgeGui

public class ForgeGui extends Gui
Forge wrapper around Gui to be able to render HUD overlays.
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • WHITE

      private static final int WHITE
      See Also:
    • rayTraceDistance

      public static double rayTraceDistance
    • leftHeight

      public int leftHeight
    • rightHeight

      public int rightHeight
  • Constructor Details

  • Method Details

    • getMinecraft

      public Minecraft getMinecraft()
    • setupOverlayRenderState

      public void setupOverlayRenderState(boolean blend, boolean depthTest)
    • render

      public void render(GuiGraphics guiGraphics, float partialTick)
      Overrides:
      render in class Gui
    • shouldDrawSurvivalElements

      public boolean shouldDrawSurvivalElements()
    • renderSubtitles

      protected void renderSubtitles(GuiGraphics guiGraphics)
    • renderBossHealth

      protected void renderBossHealth(GuiGraphics guiGraphics)
    • renderSpyglassOverlay

      void renderSpyglassOverlay(GuiGraphics guiGraphics)
    • renderHelmet

      void renderHelmet(float partialTick, GuiGraphics guiGraphics)
    • renderFrostbite

      void renderFrostbite(GuiGraphics guiGraphics)
    • renderArmor

      protected void renderArmor(GuiGraphics guiGraphics, int width, int height)
    • renderPortalOverlay

      protected void renderPortalOverlay(GuiGraphics guiGraphics, float alpha)
      Overrides:
      renderPortalOverlay in class Gui
    • renderAir

      protected void renderAir(int width, int height, GuiGraphics guiGraphics)
    • renderHealth

      public void renderHealth(int width, int height, GuiGraphics guiGraphics)
    • renderFood

      public void renderFood(int width, int height, GuiGraphics guiGraphics)
    • renderSleepFade

      protected void renderSleepFade(int width, int height, GuiGraphics guiGraphics)
    • renderExperience

      protected void renderExperience(int x, GuiGraphics guiGraphics)
    • renderJumpMeter

      public void renderJumpMeter(PlayerRideableJumping playerRideableJumping, GuiGraphics guiGraphics, int x)
      Overrides:
      renderJumpMeter in class Gui
    • renderHUDText

      protected void renderHUDText(int width, int height, GuiGraphics guiGraphics)
    • renderFPSGraph

      protected void renderFPSGraph(GuiGraphics guiGraphics)
    • renderNetworkGraph

      protected void renderNetworkGraph(GuiGraphics guiGraphics)
    • renderRecordOverlay

      protected void renderRecordOverlay(int width, int height, float partialTick, GuiGraphics guiGraphics)
    • renderTitle

      protected void renderTitle(int width, int height, float partialTick, GuiGraphics guiGraphics)
    • renderChat

      protected void renderChat(int width, int height, GuiGraphics guiGraphics)
    • renderPlayerList

      protected void renderPlayerList(int width, int height, GuiGraphics guiGraphics)
    • renderHealthMount

      protected void renderHealthMount(int width, int height, GuiGraphics guiGraphics)
    • pre

      private boolean pre(NamedGuiOverlay overlay, GuiGraphics guiGraphics)
    • post

      private void post(NamedGuiOverlay overlay, GuiGraphics guiGraphics)