Class ExtendedGui
java.lang.Object
net.minecraft.client.gui.Gui
net.neoforged.neoforge.client.gui.overlay.ExtendedGui
NeoForge extension of
Gui
to be able to render HUD overlays
.-
Field Summary
Modifier and TypeFieldDescriptionprivate 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
AIR_BURSTING_SPRITE, AIR_SPRITE, animateOverlayMessageColor, ARMOR_EMPTY_SPRITE, ARMOR_FULL_SPRITE, ARMOR_HALF_SPRITE, AUTOSAVE_FADE_SPEED_FACTOR, autosaveIndicatorValue, bossOverlay, chat, chatDisabledByPlayerShown, COLOR_WHITE, CROSSHAIR_ATTACK_INDICATOR_BACKGROUND_SPRITE, CROSSHAIR_ATTACK_INDICATOR_FULL_SPRITE, CROSSHAIR_ATTACK_INDICATOR_PROGRESS_SPRITE, CROSSHAIR_SPRITE, debugOverlay, DEMO_EXPIRED_TEXT, displayHealth, EFFECT_BACKGROUND_AMBIENT_SPRITE, EFFECT_BACKGROUND_SPRITE, EXPERIENCE_BAR_BACKGROUND_SPRITE, EXPERIENCE_BAR_PROGRESS_SPRITE, FOOD_EMPTY_HUNGER_SPRITE, FOOD_EMPTY_SPRITE, FOOD_FULL_HUNGER_SPRITE, FOOD_FULL_SPRITE, FOOD_HALF_HUNGER_SPRITE, FOOD_HALF_SPRITE, healthBlinkTime, HEART_SEPARATION, HEART_SIZE, HEART_VEHICLE_CONTAINER_SPRITE, HEART_VEHICLE_FULL_SPRITE, HEART_VEHICLE_HALF_SPRITE, HOTBAR_ATTACK_INDICATOR_BACKGROUND_SPRITE, HOTBAR_ATTACK_INDICATOR_PROGRESS_SPRITE, HOTBAR_OFFHAND_LEFT_SPRITE, HOTBAR_OFFHAND_RIGHT_SPRITE, HOTBAR_SELECTION_SPRITE, HOTBAR_SPRITE, itemRenderer, JUMP_BAR_BACKGROUND_SPRITE, JUMP_BAR_COOLDOWN_SPRITE, JUMP_BAR_PROGRESS_SPRITE, 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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) void
renderDebugScreenOverlay
(GuiGraphics guiGraphics) protected void
renderExperience
(int x, GuiGraphics guiGraphics) void
renderFood
(int width, int height, 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) 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, clearCache, displayScoreboardSidebar, drawBackdrop, getBossOverlay, getChat, getDebugOverlay, 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
-
-
Constructor Details
-
ExtendedGui
-
-
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
-
renderRecordOverlay
protected void renderRecordOverlay(int width, int height, float partialTick, GuiGraphics guiGraphics) -
renderTitle
-
renderChat
-
renderPlayerList
-
renderHealthMount
-
pre
-
post
-
renderDebugScreenOverlay
-