Class ForgeGui
java.lang.Object
net.minecraft.client.gui.Gui
net.minecraftforge.client.gui.overlay.ForgeGui
Forge wrapper around
Gui
to be able to render HUD overlays
.-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ForgeGui.ForgeDebugScreenOverlay
private Font
int
private static final org.apache.logging.log4j.Logger
static double
int
private static final int
Fields inherited from class net.minecraft.client.gui.Gui
animateOverlayMessageColor, AUTOSAVE_FADE_SPEED_FACTOR, autosaveIndicatorValue, bossOverlay, chat, chatDisabledByPlayerShown, COLOR_WHITE, debugScreen, DEMO_EXPIRED_TEXT, displayHealth, GUI_ICONS_LOCATION, healthBlinkTime, HEART_SEPARATION, HEART_SIZE, itemRenderer, lastAutosaveIndicatorValue, lastHealth, lastHealthTime, lastToolHighlight, LINE_HEIGHT, MIN_CROSSHAIR_ATTACK_SPEED, minecraft, NUM_HEARTS_PER_ROW, overlayMessageString, overlayMessageTime, PORTAL_OVERLAY_ALPHA_MIN, POWDER_SNOW_OUTLINE_LOCATION, PUMPKIN_BLUR_LOCATION, random, SAVING_TEXT, scopeScale, screenHeight, screenWidth, SPACER, spectatorGui, SPYGLASS_SCOPE_LOCATION, subtitle, subtitleOverlay, tabList, tickCount, title, titleFadeInTime, titleFadeOutTime, titleStayTime, titleTime, toolHighlightTimer, VIGNETTE_LOCATION, vignetteBrightness, WIDGETS_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
post
(NamedGuiOverlay overlay, GuiGraphics guiGraphics) private boolean
pre
(NamedGuiOverlay overlay, GuiGraphics guiGraphics) void
render
(GuiGraphics guiGraphics, float partialTick) protected void
renderAir
(int width, int height, GuiGraphics guiGraphics) protected void
renderArmor
(GuiGraphics guiGraphics, int width, int height) protected void
renderBossHealth
(GuiGraphics guiGraphics) protected void
renderChat
(int width, int height, GuiGraphics guiGraphics) protected void
renderExperience
(int x, GuiGraphics guiGraphics) void
renderFood
(int width, int height, GuiGraphics guiGraphics) protected void
renderFPSGraph
(GuiGraphics guiGraphics) (package private) void
renderFrostbite
(GuiGraphics guiGraphics) void
renderHealth
(int width, int height, GuiGraphics guiGraphics) protected void
renderHealthMount
(int width, int height, GuiGraphics guiGraphics) (package private) void
renderHelmet
(float partialTick, GuiGraphics guiGraphics) protected void
renderHUDText
(int width, int height, GuiGraphics guiGraphics) void
renderJumpMeter
(PlayerRideableJumping playerRideableJumping, GuiGraphics guiGraphics, int x) protected void
renderPlayerList
(int width, int height, GuiGraphics guiGraphics) protected void
renderPortalOverlay
(GuiGraphics guiGraphics, float alpha) protected void
renderRecordOverlay
(int width, int height, float partialTick, GuiGraphics guiGraphics) protected void
renderSleepFade
(int width, int height, GuiGraphics guiGraphics) (package private) void
renderSpyglassOverlay
(GuiGraphics guiGraphics) protected void
renderSubtitles
(GuiGraphics guiGraphics) protected void
renderTitle
(int width, int height, float partialTick, GuiGraphics guiGraphics) void
setupOverlayRenderState
(boolean blend, boolean depthTest) boolean
Methods inherited from class net.minecraft.client.gui.Gui
clear, displayScoreboardSidebar, drawBackdrop, getBossOverlay, getChat, getFont, getGuiTicks, getSpectatorGui, getTabList, isShowingChatDisabledByPlayer, onDisconnected, renderCrosshair, renderDemoOverlay, renderEffects, renderExperienceBar, renderHearts, renderHotbar, renderSelectedItemName, renderSelectedItemName, renderSpyglassOverlay, renderTextureOverlay, renderVignette, resetTitleTimes, setChatDisabledByPlayerShown, setNowPlaying, setOverlayMessage, setSubtitle, setTimes, setTitle, tick
-
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
-
debugOverlay
-
-
Constructor Details
-
ForgeGui
-
-
Method Details
-
getMinecraft
-
setupOverlayRenderState
public void setupOverlayRenderState(boolean blend, boolean depthTest) -
render
-
shouldDrawSurvivalElements
public boolean shouldDrawSurvivalElements() -
renderSubtitles
-
renderBossHealth
-
renderSpyglassOverlay
-
renderHelmet
-
renderFrostbite
-
renderArmor
-
renderPortalOverlay
- Overrides:
renderPortalOverlay
in classGui
-
renderAir
-
renderHealth
-
renderFood
-
renderSleepFade
-
renderExperience
-
renderJumpMeter
public void renderJumpMeter(PlayerRideableJumping playerRideableJumping, GuiGraphics guiGraphics, int x) - Overrides:
renderJumpMeter
in classGui
-
renderHUDText
-
renderFPSGraph
-
clearCache
public void clearCache()- Overrides:
clearCache
in classGui
-
renderRecordOverlay
protected void renderRecordOverlay(int width, int height, float partialTick, GuiGraphics guiGraphics) -
renderTitle
-
renderChat
-
renderPlayerList
-
renderHealthMount
-
pre
-
post
-