Apollo
Mod Options
GuiScale

GUI Scale

Allows you to set a custom GUI scale different from the Minecraft settings.

Integration

How to toggle the mod

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

Available options

  • ENABLED

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

    • Config Key: hotbar-scale
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.25F
      • Maximum: 2.0F
  • INVENTORY_SCALE

    • Config Key: inventory-scale
    • Values
      • Type: Integer
      • Default: 2
      • Minimum: 1
      • Maximum: 5