Package kr.toxicity.model.api
Interface BetterModelPlugin
- All Superinterfaces:
org.bukkit.command.CommandExecutor,io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner,net.kyori.adventure.key.Namespaced,org.bukkit.plugin.Plugin,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor
public interface BetterModelPlugin
extends org.bukkit.plugin.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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents the outcome of a plugin reload operation. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReloadEndHandler(@NotNull Consumer<BetterModelPlugin.ReloadResult> consumer) Registers a handler to be executed when a reload ends.voidaddReloadStartHandler(@NotNull Consumer<PackZipper> consumer) Registers a handler to be executed when a reload starts.@NotNull BetterModelConfigconfig()Returns the plugin's configuration manager.@NotNull BetterModelEvaluatorReturns the expression evaluator.@Nullable InputStreamgetResource(@NotNull String path) Retrieves a resource from the plugin's JAR file.booleanChecks if the running version of BetterModel is a snapshot build.@NotNull BetterModelLoggerlogger()Returns the plugin's logger.@NotNull ModelManagerReturns the model manager.@NotNull NMSnms()Returns the NMS (Net.Minecraft.Server) handler for version-specific operations.@NotNull PlayerManagerReturns the player manager.@NotNull ProfileManagerReturns the profile manager.default @NotNull BetterModelPlugin.ReloadResultreload()Reloads the plugin with default settings (console sender).@NotNull BetterModelPlugin.ReloadResultreload(@NotNull ReloadInfo info) Reloads the plugin with specific reload information.default @NotNull BetterModelPlugin.ReloadResultreload(@NotNull org.bukkit.command.CommandSender sender) Reloads the plugin, specifying the command sender who initiated it.@NotNull ModelSchedulerReturns the plugin's scheduler.@NotNull ScriptManagerReturns the script manager.@NotNull com.vdurmont.semver4j.Semversemver()Returns the semantic version of the plugin.@NotNull SkinManagerReturns the skin manager.@NotNull MinecraftVersionversion()Returns the Minecraft version of the running server.Methods inherited from interface org.bukkit.command.CommandExecutor
onCommandMethods inherited from interface net.kyori.adventure.key.Namespaced
namespaceMethods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getConfig, getDataFolder, getDataPath, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getLifecycleManager, getLog4JLogger, getLogger, getName, getPluginLoader, getPluginMeta, getServer, getSLF4JLogger, isEnabled, isNaggable, onDisable, onEnable, onLoad, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggableMethods inherited from interface org.bukkit.command.TabCompleter
onTabComplete
-
Method Details
-
reload
Reloads the plugin with default settings (console sender).- Returns:
- the result of the reload operation
- Since:
- 1.15.2
-
reload
@NotNull default @NotNull BetterModelPlugin.ReloadResult reload(@NotNull @NotNull org.bukkit.command.CommandSender sender) Reloads the plugin, specifying the command sender who initiated it.- Parameters:
sender- the command sender- Returns:
- the result of the reload operation
- Since:
- 1.15.2
-
reload
Reloads the plugin with specific reload information.- Parameters:
info- the reload configuration- Returns:
- the result of the reload operation
- Since:
- 1.15.2
-
isSnapshot
boolean isSnapshot()Checks if the running version of BetterModel is a snapshot build.- Returns:
- true if snapshot, false otherwise
- Since:
- 1.15.2
-
config
Returns the plugin's configuration manager.- Returns:
- the configuration
- Since:
- 1.15.2
-
version
Returns the Minecraft version of the running server.- Returns:
- the Minecraft version
- Since:
- 1.15.2
-
semver
@NotNull @NotNull com.vdurmont.semver4j.Semver semver()Returns the semantic version of the plugin.- Returns:
- the semantic version
- Since:
- 1.15.2
-
nms
Returns the NMS (Net.Minecraft.Server) handler for version-specific operations.- Returns:
- the NMS handler
- Since:
- 1.15.2
-
modelManager
Returns the model manager.- Returns:
- the model manager
- Since:
- 1.15.2
-
playerManager
Returns the player manager.- Returns:
- the player manager
- Since:
- 1.15.2
-
scriptManager
Returns the script manager.- Returns:
- the script manager
- Since:
- 1.15.2
-
skinManager
Returns the skin manager.- Returns:
- the skin manager
- Since:
- 1.15.2
-
profileManager
Returns the profile manager.- Returns:
- the profile manager
- Since:
- 1.15.2
-
scheduler
Returns the plugin's scheduler.- Returns:
- the scheduler
- Since:
- 1.15.2
-
addReloadStartHandler
Registers a handler to be executed when a reload starts.- Parameters:
consumer- the handler, receiving thePackZipper- Since:
- 1.15.2
-
addReloadEndHandler
Registers a handler to be executed when a reload ends.- Parameters:
consumer- the handler, receiving theBetterModelPlugin.ReloadResult- Since:
- 1.15.2
-
logger
Returns the plugin's logger.- Returns:
- the logger
- Since:
- 1.15.2
-
evaluator
Returns the expression evaluator.- Returns:
- the evaluator
- Since:
- 1.15.2
-
getResource
Retrieves a resource from the plugin's JAR file.- Specified by:
getResourcein interfaceorg.bukkit.plugin.Plugin- Parameters:
path- the path to the resource- Returns:
- an input stream for the resource, or null if not found
- Since:
- 1.15.2
-