Skip to main content

Overview

The BetterModelConfig interface provides access to various configuration settings for BetterModel, including debug options, pack generation settings, module toggles, and runtime behaviors. You can access the configuration through BetterModel.config().

Package

Methods

Sub-Configuration Access

debug()

Returns the debug configuration settings.
Returns: DebugConfig - The debug configuration Since: 1.15.2

indicator()

Returns the indicator configuration settings.
Returns: IndicatorConfig - The indicator configuration Since: 1.15.2

module()

Returns the module configuration for enabling/disabling features.
Returns: ModuleConfig - The module configuration Since: 1.15.2

pack()

Returns the resource pack configuration.
Returns: PackConfig - The pack configuration Since: 1.15.2

Feature Toggles

metrics()

Checks if metrics collection (e.g., bStats) is enabled.
Returns: boolean - True if enabled, false otherwise Since: 1.15.2

sightTrace()

Checks if sight tracing (visibility checking) is enabled for entity rendering optimization.
Returns: boolean - True if enabled, false otherwise Since: 1.15.2

mergeWithExternalResources()

Checks if BetterModel should attempt to merge its resource pack with external plugins/mods.
Returns: boolean - True to merge, false otherwise Since: 1.15.2

followMobInvisibility()

Checks if model trackers should follow the source entity’s invisibility status.
Returns: boolean - True to follow invisibility, false otherwise Since: 1.15.2

usePurpurAfk()

Checks if Purpur’s AFK API should be used for AFK detection.
Returns: boolean - True to use Purpur AFK, false otherwise Since: 1.15.2

versionCheck()

Checks if version update notifications should be sent to OPs on join.
Returns: boolean - True to send notifications, false otherwise Since: 1.15.2

cancelPlayerModelInventory()

Checks if inventory swap packets should be cancelled for players with active models.
Returns: boolean - True to cancel, false otherwise Since: 1.15.2

enableStrictLoading()

Checks if strict loading mode is enabled. Strict loading causes the platform to fail fast on model loading errors.
Returns: boolean - True if strict loading is enabled, false otherwise Since: 1.15.2

Item & Model Settings

item()

Returns a supplier for the platform item stack used as the base for model items.
Returns: Supplier<PlatformItemStack> - A supplier providing the target item stack Since: 2.0.0

itemModel()

Returns the item model string identifier used for the resource pack target item.
Returns: String - The item model string Since: 2.0.0

itemNamespace()

Returns the namespace used for the target item.
Returns: String - The item namespace Since: 1.15.2

namespace()

Returns the namespace used for the generated resource pack.
Returns: String - The namespace Since: 1.15.2

Sight & Rendering Settings

maxSight()

Returns the maximum range for sight tracing in blocks.
Returns: double - The max range Since: 1.15.2

minSight()

Returns the minimum range for sight tracing in blocks.
Returns: double - The min range Since: 1.15.2

Pack Generation Settings

packType()

Returns the type of resource pack generation (Folder, Zip, or None).
Returns: PackType - The pack type Since: 1.15.2 Example:

buildFolderLocation()

Returns the location of the build folder for resource packs.
Returns: String - The build folder path Since: 1.15.2

Mount & Entity Settings

defaultMountController()

Returns the default mount controller used for entities.
Returns: MountController - The default mount controller Since: 1.15.2 See Also: kr.toxicity.model.api.mount.MountControllers

Performance & Timing Settings

lerpFrameTime()

Returns the interpolation frame time (lerp) in milliseconds for smooth animations.
Returns: int - The lerp frame time Since: 1.15.2

playerHideDelay()

Returns the delay in ticks before hiding a player’s model after they become invisible.
Returns: long - The hide delay Since: 1.15.2

packetBundlingSize()

Returns the threshold size for packet bundling to optimize network performance.
Returns: int - The packet bundling size Since: 1.15.2

Nested Types

PackType

Enumerates the types of resource pack generation.
Values:
enum
Generate the resource pack as a folder structure
enum
Generate the resource pack as a ZIP archive
enum
Do not generate a resource pack
Since: 1.15.2

Complete Example

See Also