Interface IdentifiedLayer

All Superinterfaces:
LayeredDrawer.Layer

public interface IdentifiedLayer extends 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 Details Link icon

    • MISC_OVERLAYS Link icon

      static final Identifier MISC_OVERLAYS
      The identifier for the vanilla miscellaneous overlays (such as vignette, spyglass, and powder snow) layer.
    • CROSSHAIR Link icon

      static final Identifier CROSSHAIR
      The identifier for the vanilla crosshair layer.
    • HOTBAR_AND_BARS Link icon

      static final Identifier HOTBAR_AND_BARS
      The identifier for the vanilla hotbar, spectator hud, experience bar, and status bars layer.
    • EXPERIENCE_LEVEL Link icon

      static final Identifier EXPERIENCE_LEVEL
      The identifier for the vanilla experience level layer.
    • STATUS_EFFECTS Link icon

      static final Identifier STATUS_EFFECTS
      The identifier for the vanilla status effects layer.
    • BOSS_BAR Link icon

      static final Identifier BOSS_BAR
      The identifier for the vanilla boss bar layer.
    • SLEEP Link icon

      static final Identifier SLEEP
      The identifier for the vanilla sleep overlay layer.
    • DEMO_TIMER Link icon

      static final Identifier DEMO_TIMER
      The identifier for the vanilla demo timer layer.
    • DEBUG Link icon

      static final Identifier DEBUG
      The identifier for the vanilla debug hud layer.
    • SCOREBOARD Link icon

      static final Identifier SCOREBOARD
      The identifier for the vanilla scoreboard layer.
    • OVERLAY_MESSAGE Link icon

      static final Identifier OVERLAY_MESSAGE
      The identifier for the vanilla overlay message layer.
    • TITLE_AND_SUBTITLE Link icon

      static final Identifier TITLE_AND_SUBTITLE
      The identifier for the vanilla title and subtitle layer.

      Note that this is not the sound subtitles.

    • CHAT Link icon

      static final Identifier CHAT
      The identifier for the vanilla chat layer.
    • PLAYER_LIST Link icon

      static final Identifier PLAYER_LIST
      The identifier for the vanilla player list layer.
    • SUBTITLES Link icon

      static final Identifier SUBTITLES
      The identifier for the vanilla sound subtitles layer.
  • Method Details Link icon

    • id Link icon

      Returns:
      the identifier of the layer
    • of Link icon

      Wraps a hud layer in an identified layer.
      Parameters:
      id - the identifier to give the layer
      layer - the layer to wrap
      Returns:
      the identified layer