Class ForgeGui
java.lang.Object
net.minecraft.client.gui.GuiComponent
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, 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
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
bind
(ResourceLocation res) void
private void
post
(NamedGuiOverlay overlay, PoseStack poseStack) private boolean
pre
(NamedGuiOverlay overlay, PoseStack poseStack) void
protected void
protected void
renderArmor
(PoseStack poseStack, int width, int height) protected void
renderBossHealth
(PoseStack poseStack) protected void
renderChat
(int width, int height, PoseStack pStack) protected void
renderExperience
(int x, PoseStack poseStack) void
renderFood
(int width, int height, PoseStack poseStack) protected void
renderFPSGraph
(PoseStack poseStack) (package private) void
renderFrostbite
(PoseStack pStack) void
renderHealth
(int width, int height, PoseStack pStack) protected void
renderHealthMount
(int width, int height, PoseStack poseStack) (package private) void
renderHelmet
(float partialTick, PoseStack poseStack) protected void
renderHUDText
(int width, int height, PoseStack poseStack) void
renderJumpMeter
(PlayerRideableJumping playerRideableJumping, PoseStack poseStack, int x) protected void
renderPlayerList
(int width, int height, PoseStack poseStack) protected void
renderPortalOverlay
(PoseStack stack, float partialTick) protected void
renderRecordOverlay
(int width, int height, float partialTick, PoseStack pStack) protected void
renderSleepFade
(int width, int height, PoseStack poseStack) (package private) void
renderSpyglassOverlay
(PoseStack stack) protected void
renderSubtitles
(PoseStack poseStack) protected void
renderTitle
(int width, int height, float partialTick, PoseStack pStack) void
setupOverlayRenderState
(boolean blend, boolean depthText) void
setupOverlayRenderState
(boolean blend, boolean depthTest, @Nullable ResourceLocation texture) 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, renderSpyglassOverlay, renderTextureOverlay, renderVignette, resetTitleTimes, setChatDisabledByPlayerShown, setNowPlaying, setOverlayMessage, setSubtitle, setTimes, setTitle, tick
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, vLine
-
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 depthText) -
setupOverlayRenderState
public void setupOverlayRenderState(boolean blend, boolean depthTest, @Nullable @Nullable ResourceLocation texture) -
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, PoseStack poseStack, int x) - Overrides:
renderJumpMeter
in classGui
-
renderHUDText
-
renderFPSGraph
-
clearCache
public void clearCache()- Overrides:
clearCache
in classGui
-
renderRecordOverlay
-
renderTitle
-
renderChat
-
renderPlayerList
-
renderHealthMount
-
pre
-
post
-
bind
-