Apollo
Developers
Mods
PackDisplay

Pack Display

Shows the currently active Resource Pack on the HUD.

Integration

How to toggle the mod

public void togglePackDisplayExample(Player viewer, boolean value) {
    Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
    apolloPlayerOpt.ifPresent(apolloPlayer -> this.modSettingModule.getOptions().set(apolloPlayer, ModPackDisplay.ENABLED, value));
}

Available options

  • ENABLED

    • Config Key: enabled
    • Values
      • Type: Boolean
      • Default: false
  • SCALE

    • Config Key: scale
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.5F
      • Maximum: 1.5F
  • PACK_ICON

    • Config Key: pack-icon
    • Values
      • Type: Boolean
      • Default: true
  • PACK_DESCRIPTION

    • Config Key: pack-description
    • Values
      • Type: Boolean
      • Default: false
  • PACK_EXTENSION

    • Config Key: pack-extension
    • Values
      • Type: Boolean
      • Default: false
  • MOVE_TITLE_DOWN

    • Config Key: move-title-down
    • Values
      • Type: Boolean
      • Default: true
  • TEXT_SHADOW

    • Config Key: text-shadow
    • Values
      • Type: Boolean
      • Default: true
  • BRACKETS

    • Config Key: brackets
    • Values
      • Type: Boolean
      • Default: true
  • BRACKET_COLOR

    • Config Key: bracket-color
    • Values
      • Type: String
      • Default: #FFFFFFFF
  • BACKGROUND

    • Config Key: background
    • Values
      • Type: Boolean
      • Default: true
  • BACKGROUND_HEIGHT

    • Config Key: background-height
    • Values
      • Type: Integer
      • Default: 24
      • Minimum: 12
      • Maximum: 64
  • BORDER

    • Config Key: border
    • Values
      • Type: Boolean
      • Default: false
  • BORDER_THICKNESS

    • Config Key: border-thickness
    • Values
      • Type: Float
      • Default: 0.5F
      • Minimum: 0.5F
      • Maximum: 3.0F
  • BORDER_COLOR

    • Config Key: border-color
    • Values
      • Type: String
      • Default: #9F000000
  • BACKGROUND_COLOR

    • Config Key: background-color
    • Values
      • Type: String
      • Default: #6F000000
  • TEXT_COLOR

    • Config Key: text-color
    • Values
      • Type: String
      • Default: #FFFFFFFF
  • DESCRIPTION_REPLACEMENT_COLOR

    • Config Key: description-replacement-color
    • Values
      • Type: String
      • Default: #FFFFFFFF
  • KEEP_BOLD

    • Config Key: keep-bold
    • Values
      • Type: Boolean
      • Default: true
  • KEEP_ITALIC

    • Config Key: keep-italic
    • Values
      • Type: Boolean
      • Default: true
  • KEEP_UNDERLINE

    • Config Key: keep-underline
    • Values
      • Type: Boolean
      • Default: true
  • KEEP_STRIKETHROUGH

    • Config Key: keep-strikethrough
    • Values
      • Type: Boolean
      • Default: true
  • KEEP_OBFUSCATED

    • Config Key: keep-obfuscated
    • Values
      • Type: Boolean
      • Default: true