StrataPlugin

class StrataPlugin : JavaPlugin, Listener, PluginMessageListener(source)

Installable Paper plugin owning messaging registrations and Paper or Folia entity-region UI scheduling. Other plugins use PaperUi and declare Strata as a dependency.

Constructors

Link copied to clipboard
constructor()

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
@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
@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 override fun onDisable()
Link copied to clipboard
open override fun onEnable()
Link copied to clipboard
fun onInventoryClose(event: InventoryCloseEvent)

Prevents a screen from retaining operations for a container that has been closed.

Link copied to clipboard
fun onInventoryOpen(event: InventoryOpenEvent)

Retires the prior screen after an accepted native inventory replacement.

Link copied to clipboard
fun onJoin(event: PlayerJoinEvent)

Starts negotiation only after a player has joined the server.

Link copied to clipboard
open fun onLoad()
Link copied to clipboard
fun onPluginDisable(event: PluginDisableEvent)

Ends dependent-plugin screens before their handlers become unavailable.

Link copied to clipboard
open override fun onPluginMessageReceived(channel: String, player: Player, message: ByteArray)
Link copied to clipboard
fun onQuit(event: PlayerQuitEvent)

Releases the departed player's screen and all transport buffers.

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)