Interface IdentifiedLayer
- All Superinterfaces:
LayeredDrawer.Layer
A hud layer that has an identifier attached for use in
LayeredDrawerWrapper
.
The identifiers in this interface are the vanilla hud layers in the order they are drawn in.
The first layer 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 layer will generally inherit that layer's render condition.
There is currently no mechanism to change the render condition of a layer.
For common use cases and more details on how this API deals with render condition, see LayeredDrawerWrapper
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Identifier
The identifier for the vanilla boss bar layer.static final Identifier
The identifier for the vanilla chat layer.static final Identifier
The identifier for the vanilla crosshair layer.static final Identifier
The identifier for the vanilla debug hud layer.static final Identifier
The identifier for the vanilla demo timer layer.static final Identifier
The identifier for the vanilla experience level layer.static final Identifier
The identifier for the vanilla hotbar, spectator hud, experience bar, and status bars layer.static final Identifier
The identifier for the vanilla miscellaneous overlays (such as vignette, spyglass, and powder snow) layer.static final Identifier
The identifier for the vanilla overlay message layer.static final Identifier
The identifier for the vanilla player list layer.static final Identifier
The identifier for the vanilla scoreboard layer.static final Identifier
The identifier for the vanilla sleep overlay layer.static final Identifier
The identifier for the vanilla status effects layer.static final Identifier
The identifier for the vanilla sound subtitles layer.static final Identifier
The identifier for the vanilla title and subtitle layer. -
Method Summary
Modifier and TypeMethodDescriptionid()
static IdentifiedLayer
of
(Identifier id, LayeredDrawer.Layer layer) Wraps a hud layer in an identified layer.Methods inherited from interface net.minecraft.client.gui.LayeredDrawer.Layer
render
-
Field Details
-
MISC_OVERLAYS
The identifier for the vanilla miscellaneous overlays (such as vignette, spyglass, and powder snow) layer. -
CROSSHAIR
The identifier for the vanilla crosshair layer. -
HOTBAR_AND_BARS
The identifier for the vanilla hotbar, spectator hud, experience bar, and status bars layer. -
EXPERIENCE_LEVEL
The identifier for the vanilla experience level layer. -
STATUS_EFFECTS
The identifier for the vanilla status effects layer. -
BOSS_BAR
The identifier for the vanilla boss bar layer. -
SLEEP
The identifier for the vanilla sleep overlay layer. -
DEMO_TIMER
The identifier for the vanilla demo timer layer. -
DEBUG
The identifier for the vanilla debug hud layer. -
SCOREBOARD
The identifier for the vanilla scoreboard layer. -
OVERLAY_MESSAGE
The identifier for the vanilla overlay message layer. -
TITLE_AND_SUBTITLE
The identifier for the vanilla title and subtitle layer.Note that this is not the sound subtitles.
-
CHAT
The identifier for the vanilla chat layer. -
PLAYER_LIST
The identifier for the vanilla player list layer. -
SUBTITLES
The identifier for the vanilla sound subtitles layer.
-
-
Method Details
-
id
Identifier id()- Returns:
- the identifier of the layer
-
of
Wraps a hud layer in an identified layer.- Parameters:
id
- the identifier to give the layerlayer
- the layer to wrap- Returns:
- the identified layer
-