BetterModelPlugin

interface BetterModelPlugin : Plugin

Represents the main plugin interface for BetterModel.

This interface extends Plugin and provides access to core managers, configuration, versioning, and reloading functionality. It serves as the central hub for the plugin's operations.

Since

1.15.2

See also

JavaPlugin

Types

Link copied to clipboard
interface ReloadResult
Represents the outcome of a plugin reload operation.

Functions

Link copied to clipboard
abstract fun addReloadEndHandler(@NotNull consumer: @NotNull Consumer<BetterModelPlugin.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 plugin's configuration manager.
Link copied to clipboard
@NotNull
abstract fun evaluator(): @NotNull BetterModelEvaluator
Returns the expression evaluator.
Link copied to clipboard
open fun getComponentLogger(): @NotNull ComponentLogger
Link copied to clipboard
abstract fun getConfig(): @NotNull FileConfiguration
Link copied to clipboard
abstract fun getDataFolder(): @NotNull File
Link copied to clipboard
open fun getDataPath(): @NotNull Path
Link copied to clipboard
abstract fun getDefaultBiomeProvider(p: @NotNull String, p1: @Nullable String): @Nullable BiomeProvider
Link copied to clipboard
abstract fun getDefaultWorldGenerator(p: @NotNull String, p1: @Nullable String): @Nullable ChunkGenerator
Link copied to clipboard
abstract fun getDescription(): @NotNull PluginDescriptionFile
Link copied to clipboard
abstract fun getLifecycleManager(): @NotNull LifecycleEventManager<Plugin>
Link copied to clipboard
open fun getLog4JLogger(): @NotNull Logger
Link copied to clipboard
abstract fun getLogger(): @NotNull Logger
Link copied to clipboard
abstract fun getName(): @NotNull String
Link copied to clipboard
abstract fun getPluginLoader(): @NotNull PluginLoader
Link copied to clipboard
abstract fun getPluginMeta(): @NotNull PluginMeta
Link copied to clipboard
@Nullable
abstract fun getResource(@NotNull path: @NotNull String): @Nullable InputStream
Retrieves a resource from the plugin's JAR file.
Link copied to clipboard
abstract fun getServer(): @NotNull Server
Link copied to clipboard
open fun getSLF4JLogger(): @NotNull Logger
Link copied to clipboard
abstract fun isEnabled(): Boolean
Link copied to clipboard
abstract fun isNaggable(): Boolean
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 logger(): @NotNull BetterModelLogger
Returns the plugin's logger.
Link copied to clipboard
@NotNull
abstract fun modelManager(): @NotNull ModelManager
Returns the model manager.
Link copied to clipboard
abstract fun namespace(): @NotNull String
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
abstract fun onCommand(p: @NotNull CommandSender, p1: @NotNull Command, p2: @NotNull String, p3: @NotNull Array<@NotNull String>): Boolean
Link copied to clipboard
abstract fun onDisable()
Link copied to clipboard
abstract fun onEnable()
Link copied to clipboard
abstract fun onLoad()
Link copied to clipboard
abstract fun onTabComplete(p: @NotNull CommandSender, p1: @NotNull Command, p2: @NotNull String, p3: @NotNull Array<@NotNull String>): @Nullable List<String>
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 BetterModelPlugin.ReloadResult
Reloads the plugin with default settings (console sender).
@NotNull
abstract fun reload(@NotNull info: @NotNull ReloadInfo): @NotNull BetterModelPlugin.ReloadResult
Reloads the plugin with specific reload information.
@NotNull
open fun reload(@NotNull sender: @NotNull CommandSender): @NotNull BetterModelPlugin.ReloadResult
Reloads the plugin, specifying the command sender who initiated it.
Link copied to clipboard
abstract fun reloadConfig()
Link copied to clipboard
abstract fun saveConfig()
Link copied to clipboard
abstract fun saveDefaultConfig()
Link copied to clipboard
abstract fun saveResource(p: @NotNull String, p1: Boolean)
Link copied to clipboard
@NotNull
abstract fun scheduler(): @NotNull ModelScheduler
Returns the plugin'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 plugin.
Link copied to clipboard
abstract fun setNaggable(p: Boolean)
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.