BetterModelPlatform

Represents the main platform interface for BetterModel.

Since

1.15.2

See also

Types

Link copied to clipboard
enum JarType
Represents the type of JAR file the platform is running on.
Link copied to clipboard
interface ReloadResult
Represents the outcome of a platform reload operation.

Functions

Link copied to clipboard
@NotNull
abstract fun adapter(): @NotNull PlatformAdapter
Return the platform's adapter
Link copied to clipboard
abstract fun addReloadEndHandler(@NotNull consumer: @NotNull Consumer<BetterModelPlatform.ReloadResult>)
Registers a handler to be executed when a reload ends.
Link copied to clipboard
abstract fun addReloadStartHandler(@NotNull consumer: @NotNull Consumer<PackZipper>)
Registers a handler to be executed when a reload starts.
Link copied to clipboard
@NotNull
abstract fun config(): @NotNull BetterModelConfig
Returns the platform's configuration manager.
Link copied to clipboard
@NotNull
abstract fun dataFolder(): @NotNull File
Returns the data folder for the BetterModel plugin.
Link copied to clipboard
@NotNull
abstract fun evaluator(): @NotNull BetterModelEvaluator
Returns the expression evaluator.
Link copied to clipboard
@NotNull
abstract fun eventBus(): @NotNull BetterModelEventBus
Returns the event bus.
Link copied to clipboard
@Nullable
abstract fun getResource(@NotNull path: @NotNull String): @Nullable InputStream
Retrieves a resource from the platform's JAR file.
Link copied to clipboard
abstract fun isEnabled(): Boolean
Checks if the application is currently enabled.
Link copied to clipboard
abstract fun isSnapshot(): Boolean
Checks if the running version of BetterModel is a snapshot build.
Link copied to clipboard
@NotNull
abstract fun jarType(): @NotNull BetterModelPlatform.JarType
Returns the type of JAR file this platform is running on (e.g., SPIGOT, PAPER, FABRIC).
Link copied to clipboard
@NotNull
abstract fun logger(): @NotNull BetterModelLogger
Returns the platform's logger.
Link copied to clipboard
@NotNull
abstract fun modelManager(): @NotNull ModelManager
Returns the model manager.
Link copied to clipboard
@NotNull
abstract fun nms(): @NotNull NMS
Returns the NMS (Net.Minecraft.Server) handler for version-specific operations.
Link copied to clipboard
@NotNull
abstract fun playerManager(): @NotNull PlayerManager
Returns the player manager.
Link copied to clipboard
@NotNull
abstract fun profileManager(): @NotNull ProfileManager
Returns the profile manager.
Link copied to clipboard
@NotNull
open fun reload(): @NotNull BetterModelPlatform.ReloadResult
Reloads the platform with default settings (console sender).
@NotNull
abstract fun reload(@NotNull info: @NotNull ReloadInfo): @NotNull BetterModelPlatform.ReloadResult
Reloads the platform with specific reload information.
@NotNull
open fun reload(@NotNull sender: @NotNull Audience): @NotNull BetterModelPlatform.ReloadResult
Reloads the platform, specifying the command sender who initiated it.
Link copied to clipboard
@NotNull
abstract fun scheduler(): @NotNull ModelScheduler
Returns the platform's scheduler.
Link copied to clipboard
@NotNull
abstract fun scriptManager(): @NotNull ScriptManager
Returns the script manager.
Link copied to clipboard
@NotNull
abstract fun semver(): @NotNull Semver
Returns the semantic version of the platform.
Link copied to clipboard
@NotNull
abstract fun skinManager(): @NotNull SkinManager
Returns the skin manager.
Link copied to clipboard
@NotNull
abstract fun version(): @NotNull MinecraftVersion
Returns the Minecraft version of the running server.