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 (Options.hideGui).
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 net.minecraft.resources.IdentifierThe identifier for the player air level bar.static final net.minecraft.resources.IdentifierThe identifier for the player armor level bar.static final net.minecraft.resources.IdentifierThe identifier for the vanilla boss bar element.static final net.minecraft.resources.IdentifierThe identifier for the vanilla chat element.static final net.minecraft.resources.IdentifierThe identifier for the vanilla crosshair element.static final net.minecraft.resources.IdentifierThe identifier for the vanilla demo timer element.static final net.minecraft.resources.IdentifierThe identifier for experience level tooltip.static final net.minecraft.resources.IdentifierThe identifier for the player hunger level bar.static final net.minecraft.resources.IdentifierThe identifier for the player health bar.static final net.minecraft.resources.IdentifierThe identifier for held item tooltip.static final net.minecraft.resources.IdentifierThe identifier for the vanilla hotbar.static final net.minecraft.resources.IdentifierThe identifier for the info bar, either empty, experience bar, locator, or jump bar.static final net.minecraft.resources.IdentifierThe identifier for the vanilla miscellaneous overlays (such as vignette, spyglass, and powder snow) element.static final net.minecraft.resources.IdentifierThe identifier for the vanilla mob effects element.static final net.minecraft.resources.IdentifierThe identifier for the vanilla mount health.static final net.minecraft.resources.IdentifierThe identifier for the vanilla overlay message element.static final net.minecraft.resources.IdentifierThe identifier for the vanilla player list element.static final net.minecraft.resources.IdentifierThe identifier for the vanilla scoreboard element.static final net.minecraft.resources.IdentifierThe identifier for the vanilla sleep overlay element.static final net.minecraft.resources.IdentifierThe identifier for the vanilla spectator menu.static final net.minecraft.resources.IdentifierThe identifier for the vanilla spectator tooltip.static final net.minecraft.resources.IdentifierThe identifier for the vanilla sound subtitles element.static final net.minecraft.resources.IdentifierThe identifier for the vanilla title and subtitle element. -
Method Summary
-
Field Details
-
MISC_OVERLAYS
public static final net.minecraft.resources.Identifier MISC_OVERLAYSThe identifier for the vanilla miscellaneous overlays (such as vignette, spyglass, and powder snow) element. -
CROSSHAIR
public static final net.minecraft.resources.Identifier CROSSHAIRThe identifier for the vanilla crosshair element. -
SPECTATOR_MENU
public static final net.minecraft.resources.Identifier SPECTATOR_MENUThe identifier for the vanilla spectator menu. -
HOTBAR
public static final net.minecraft.resources.Identifier HOTBARThe identifier for the vanilla hotbar. -
ARMOR_BAR
public static final net.minecraft.resources.Identifier ARMOR_BARThe identifier for the player armor level bar. -
HEALTH_BAR
public static final net.minecraft.resources.Identifier HEALTH_BARThe identifier for the player health bar. -
FOOD_BAR
public static final net.minecraft.resources.Identifier FOOD_BARThe identifier for the player hunger level bar. -
AIR_BAR
public static final net.minecraft.resources.Identifier AIR_BARThe identifier for the player air level bar. -
MOUNT_HEALTH
public static final net.minecraft.resources.Identifier MOUNT_HEALTHThe identifier for the vanilla mount health. -
INFO_BAR
public static final net.minecraft.resources.Identifier INFO_BARThe identifier for the info bar, either empty, experience bar, locator, or jump bar. -
EXPERIENCE_LEVEL
public static final net.minecraft.resources.Identifier EXPERIENCE_LEVELThe identifier for experience level tooltip. -
HELD_ITEM_TOOLTIP
public static final net.minecraft.resources.Identifier HELD_ITEM_TOOLTIPThe identifier for held item tooltip. -
SPECTATOR_TOOLTIP
public static final net.minecraft.resources.Identifier SPECTATOR_TOOLTIPThe identifier for the vanilla spectator tooltip. -
MOB_EFFECTS
public static final net.minecraft.resources.Identifier MOB_EFFECTSThe identifier for the vanilla mob effects element. -
BOSS_BAR
public static final net.minecraft.resources.Identifier BOSS_BARThe identifier for the vanilla boss bar element. -
SLEEP
public static final net.minecraft.resources.Identifier SLEEPThe identifier for the vanilla sleep overlay element. -
DEMO_TIMER
public static final net.minecraft.resources.Identifier DEMO_TIMERThe identifier for the vanilla demo timer element. -
SCOREBOARD
public static final net.minecraft.resources.Identifier SCOREBOARDThe identifier for the vanilla scoreboard element. -
OVERLAY_MESSAGE
public static final net.minecraft.resources.Identifier OVERLAY_MESSAGEThe identifier for the vanilla overlay message element. -
TITLE_AND_SUBTITLE
public static final net.minecraft.resources.Identifier TITLE_AND_SUBTITLEThe identifier for the vanilla title and subtitle element.Note that this is not the sound subtitles.
-
CHAT
public static final net.minecraft.resources.Identifier CHATThe identifier for the vanilla chat element. -
PLAYER_LIST
public static final net.minecraft.resources.Identifier PLAYER_LISTThe identifier for the vanilla player list element. -
SUBTITLES
public static final net.minecraft.resources.Identifier SUBTITLESThe identifier for the vanilla sound subtitles element.
-