MimicPlugin

Main class of the plugin.

Constructors

Link copied to clipboard
constructor()

Inherited properties

Link copied to clipboard
@get:NotNull
open val componentLogger: @NotNull ComponentLogger
Link copied to clipboard
@get:NotNull
open val config: @NotNull FileConfiguration
Link copied to clipboard
@get:NotNull
val dataFolder: @NotNull File
Link copied to clipboard
@get:NotNull
val description: @NotNull PluginDescriptionFile
Link copied to clipboard
@set:ApiStatus.Internal
var isEnabled: Boolean
Link copied to clipboard
Link copied to clipboard
val lifecycleManager: @NotNull LifecycleEventManager<Plugin?>
Link copied to clipboard
@get:NotNull
open val log4JLogger: @NotNull Logger
Link copied to clipboard
@get:NotNull
open val logger: @NotNull Logger
Link copied to clipboard
@get:NotNull
val name: @NotNull String
Link copied to clipboard
@get:NotNull
val pluginLoader: @NotNull PluginLoader
Link copied to clipboard
@get:NotNull
val pluginMeta: @NotNull PluginMeta
Link copied to clipboard
@get:NotNull
val server: @NotNull Server
Link copied to clipboard
@get:NotNull
open val slF4JLogger: @NotNull Logger

Functions

Link copied to clipboard
open override fun onEnable()
Link copied to clipboard
open override fun onLoad()

Inherited functions

Link copied to clipboard
@Nullable
open fun getCommand(@NotNull name: @NotNull String): @Nullable PluginCommand?
Link copied to clipboard
@Nullable
open fun getDefaultBiomeProvider(@NotNull worldName: @NotNull String, @Nullable id: @Nullable String?): @Nullable BiomeProvider?
Link copied to clipboard
@Nullable
open fun getDefaultWorldGenerator(@NotNull worldName: @NotNull String, @Nullable id: @Nullable String?): @Nullable ChunkGenerator?
Link copied to clipboard
@Nullable
open fun getResource(@NotNull filename: @NotNull String): @Nullable InputStream?
Link copied to clipboard
fun init(@NotNull loader: @NotNull PluginLoader, @NotNull server: @NotNull Server, @NotNull description: @NotNull PluginDescriptionFile, @NotNull dataFolder: @NotNull File, @NotNull file: @NotNull File, @NotNull classLoader: @NotNull ClassLoader)
fun init(@NotNull server: @NotNull Server, @NotNull description: @NotNull PluginDescriptionFile, @NotNull dataFolder: @NotNull File, @NotNull file: @NotNull File, @NotNull classLoader: @NotNull ClassLoader, @Nullable configuration: @Nullable PluginMeta?, @NotNull logger: @NotNull Logger)
Link copied to clipboard
open fun onCommand(@NotNull sender: @NotNull CommandSender, @NotNull command: @NotNull Command, @NotNull label: @NotNull String, @NotNull args: Array<out @NotNull String>?): Boolean
Link copied to clipboard
open fun onDisable()
Link copied to clipboard
@Nullable
open fun onTabComplete(@NotNull sender: @NotNull CommandSender, @NotNull command: @NotNull Command, @NotNull alias: @NotNull String, @NotNull args: Array<out @NotNull String>?): @Nullable List<String?>??
Link copied to clipboard
open fun reloadConfig()
Link copied to clipboard
open fun saveConfig()
Link copied to clipboard
Link copied to clipboard
open fun saveResource(@NotNull resourcePath: @NotNull String, replace: Boolean)