Overview
TheBetterModelConfig 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.DebugConfig - The debug configuration
Since: 1.15.2
indicator()
Returns the indicator configuration settings.IndicatorConfig - The indicator configuration
Since: 1.15.2
module()
Returns the module configuration for enabling/disabling features.ModuleConfig - The module configuration
Since: 1.15.2
pack()
Returns the resource pack configuration.PackConfig - The pack configuration
Since: 1.15.2
Feature Toggles
metrics()
Checks if metrics collection (e.g., bStats) is enabled.boolean - True if enabled, false otherwise
Since: 1.15.2
sightTrace()
Checks if sight tracing (visibility checking) is enabled for entity rendering optimization.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.boolean - True to merge, false otherwise
Since: 1.15.2
followMobInvisibility()
Checks if model trackers should follow the source entity’s invisibility status.boolean - True to follow invisibility, false otherwise
Since: 1.15.2
usePurpurAfk()
Checks if Purpur’s AFK API should be used for AFK detection.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.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.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.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.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.String - The item model string
Since: 2.0.0
itemNamespace()
Returns the namespace used for the target item.String - The item namespace
Since: 1.15.2
namespace()
Returns the namespace used for the generated resource pack.String - The namespace
Since: 1.15.2
Sight & Rendering Settings
maxSight()
Returns the maximum range for sight tracing in blocks.double - The max range
Since: 1.15.2
minSight()
Returns the minimum range for sight tracing in blocks.double - The min range
Since: 1.15.2
Pack Generation Settings
packType()
Returns the type of resource pack generation (Folder, Zip, or None).PackType - The pack type
Since: 1.15.2
Example:
buildFolderLocation()
Returns the location of the build folder for resource packs.String - The build folder path
Since: 1.15.2
Mount & Entity Settings
defaultMountController()
Returns the default mount controller used for entities.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.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.long - The hide delay
Since: 1.15.2
packetBundlingSize()
Returns the threshold size for packet bundling to optimize network performance.int - The packet bundling size
Since: 1.15.2
Nested Types
PackType
Enumerates the types of resource pack generation.Generate the resource pack as a folder structure
Generate the resource pack as a ZIP archive
Do not generate a resource pack
Complete Example
See Also
- BetterModel - Main API entry point
- BetterModelPlatform - Platform interface
