Class VanillaHudElements
java.lang.Object
net.fabricmc.fabric.api.client.rendering.v1.hud.VanillaHudElements
A hud element that has an identifier attached for use in
HudElementRegistry
.
The identifiers in this interface are the vanilla hud layers in the order they are drawn in.
The first element is drawn first, which means it is at the bottom.
All vanilla layers except SLEEP
are in sub drawers and have a render condition attached (GameOptions.hudHidden
).
Operations relative to any element will generally inherit that element's render condition.
There is currently no mechanism to change the render condition of an element.
For common use cases and more details on how this API deals with render condition, see HudElementRegistry
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Identifier
The identifier for the player air level bar.static final Identifier
The identifier for the player armor level bar.static final Identifier
The identifier for the vanilla boss bar element.static final Identifier
The identifier for the vanilla chat element.static final Identifier
The identifier for the vanilla crosshair element.static final Identifier
The identifier for the vanilla debug hud element.static final Identifier
The identifier for the vanilla demo timer element.static final Identifier
The identifier for experience level tooltip.static final Identifier
The identifier for the player hunger level bar.static final Identifier
The identifier for the player health bar.static final Identifier
The identifier for held item tooltip.static final Identifier
The identifier for the vanilla hotbar.static final Identifier
The identifier for the info bar, either empty, experience bar, locator, or jump bar.static final Identifier
The identifier for the vanilla miscellaneous overlays (such as vignette, spyglass, and powder snow) element.static final Identifier
The identifier for the vanilla mount health.static final Identifier
The identifier for the vanilla overlay message element.static final Identifier
The identifier for the vanilla player list element.static final Identifier
The identifier for the vanilla scoreboard element.static final Identifier
The identifier for the vanilla sleep overlay element.static final Identifier
The identifier for the vanilla spectator menu.static final Identifier
The identifier for the vanilla spectator tooltip.static final Identifier
The identifier for the vanilla status effects element.static final Identifier
The identifier for the vanilla sound subtitles element.static final Identifier
The identifier for the vanilla title and subtitle element. -
Method Summary
-
Field Details
-
MISC_OVERLAYS
The identifier for the vanilla miscellaneous overlays (such as vignette, spyglass, and powder snow) element. -
CROSSHAIR
The identifier for the vanilla crosshair element. -
SPECTATOR_MENU
The identifier for the vanilla spectator menu. -
HOTBAR
The identifier for the vanilla hotbar. -
ARMOR_BAR
The identifier for the player armor level bar. -
HEALTH_BAR
The identifier for the player health bar. -
FOOD_BAR
The identifier for the player hunger level bar. -
AIR_BAR
The identifier for the player air level bar. -
MOUNT_HEALTH
The identifier for the vanilla mount health. -
INFO_BAR
The identifier for the info bar, either empty, experience bar, locator, or jump bar. -
EXPERIENCE_LEVEL
The identifier for experience level tooltip. -
HELD_ITEM_TOOLTIP
The identifier for held item tooltip. -
SPECTATOR_TOOLTIP
The identifier for the vanilla spectator tooltip. -
STATUS_EFFECTS
The identifier for the vanilla status effects element. -
BOSS_BAR
The identifier for the vanilla boss bar element. -
SLEEP
The identifier for the vanilla sleep overlay element. -
DEMO_TIMER
The identifier for the vanilla demo timer element. -
DEBUG
The identifier for the vanilla debug hud element. -
SCOREBOARD
The identifier for the vanilla scoreboard element. -
OVERLAY_MESSAGE
The identifier for the vanilla overlay message element. -
TITLE_AND_SUBTITLE
The identifier for the vanilla title and subtitle element.Note that this is not the sound subtitles.
-
CHAT
The identifier for the vanilla chat element. -
PLAYER_LIST
The identifier for the vanilla player list element. -
SUBTITLES
The identifier for the vanilla sound subtitles element.
-