Class 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
    • font

      private Font font
    • debugOverlay

      private final ForgeGui.ForgeDebugScreenOverlay debugOverlay
  • Constructor Details

  • Method Details

    • getMinecraft

      public Minecraft getMinecraft()
    • setupOverlayRenderState

      public void setupOverlayRenderState(boolean blend, boolean depthText)
    • setupOverlayRenderState

      public void setupOverlayRenderState(boolean blend, boolean depthTest, @Nullable @Nullable ResourceLocation texture)
    • render

      public void render(PoseStack poseStack, float partialTick)
      Overrides:
      render in class Gui
    • shouldDrawSurvivalElements

      public boolean shouldDrawSurvivalElements()
    • renderSubtitles

      protected void renderSubtitles(PoseStack poseStack)
    • renderBossHealth

      protected void renderBossHealth(PoseStack poseStack)
    • renderSpyglassOverlay

      void renderSpyglassOverlay()
    • renderHelmet

      void renderHelmet(float partialTick, PoseStack poseStack)
    • renderFrostbite

      void renderFrostbite(PoseStack pStack)
    • renderArmor

      protected void renderArmor(PoseStack poseStack, int width, int height)
    • renderPortalOverlay

      protected void renderPortalOverlay(float partialTick)
      Overrides:
      renderPortalOverlay in class Gui
    • renderAir

      protected void renderAir(int width, int height, PoseStack poseStack)
    • renderHealth

      public void renderHealth(int width, int height, PoseStack pStack)
    • renderFood

      public void renderFood(int width, int height, PoseStack poseStack)
    • renderSleepFade

      protected void renderSleepFade(int width, int height, PoseStack poseStack)
    • renderExperience

      protected void renderExperience(int x, PoseStack poseStack)
    • renderJumpMeter

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

      protected void renderHUDText(int width, int height, PoseStack poseStack)
    • renderFPSGraph

      protected void renderFPSGraph(PoseStack poseStack)
    • renderRecordOverlay

      protected void renderRecordOverlay(int width, int height, float partialTick, PoseStack pStack)
    • renderTitle

      protected void renderTitle(int width, int height, float partialTick, PoseStack pStack)
    • renderChat

      protected void renderChat(int width, int height, PoseStack pStack)
    • renderPlayerList

      protected void renderPlayerList(int width, int height, PoseStack poseStack)
    • renderHealthMount

      protected void renderHealthMount(int width, int height, PoseStack poseStack)
    • pre

      private boolean pre(NamedGuiOverlay overlay, PoseStack poseStack)
    • post

      private void post(NamedGuiOverlay overlay, PoseStack poseStack)
    • bind

      private void bind(ResourceLocation res)