Package-level declarations

Types

Link copied to clipboard
typealias BungeeBStatsMetrics = Metrics
Link copied to clipboard
typealias BungeeCancellable = Cancellable
Link copied to clipboard
typealias BungeeCommandSender = CommandSender
Link copied to clipboard
typealias BungeeEvent = Event
Link copied to clipboard
typealias BungeeEventHandler = EventHandler
Link copied to clipboard
typealias BungeeEventPriority = EventPriority
Link copied to clipboard
typealias BungeeListener = Listener
Link copied to clipboard
typealias BungeePlayer = ProxiedPlayer
Link copied to clipboard
typealias BungeePlugin = Plugin
Link copied to clipboard
Link copied to clipboard
typealias BungeeTask = ScheduledTask
Link copied to clipboard
@Component
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Listener

Convenience-annotation to mark a specific class as a listener. Should be used in combination of VitalListener. Internally delegates functionality to Component.

Link copied to clipboard
class RequiresBungee : Condition

Convenience-condition to mark a class to only be loaded as a bean, when running as a BungeeCord plugin. If not running as a BungeeCord plugin, the annotated bean will not be instantiated by Spring.

Link copied to clipboard
class RequiresSpigot : Condition

Convenience-condition to mark a class to only be loaded as a bean, when running as a Spigot plugin. If not running as a Spigot plugin, the annotated bean will not be instantiated by Spring.

Link copied to clipboard

Convenience-condition to mark a class to only be loaded as a bean, when the vital-cloudnet4-bridge module is used. If not running with the vital-cloudnet4-bridge module, the annotated bean will not be instantiated by Spring.

Link copied to clipboard

Convenience-condition to mark a class to only be loaded as a bean, when the vital-cloudnet4-driver module is used. If not running with the vital-cloudnet4-driver module, the annotated bean will not be instantiated by Spring.

Link copied to clipboard
class RequiresVitalCommands : Condition

Convenience-condition to mark a class to only be loaded as a bean, when the vital-commands module is used. If not running with the vital-commands module, the annotated bean will not be instantiated by Spring.

Link copied to clipboard
class RequiresVitalConfigs : Condition

Convenience-condition to mark a class to only be loaded as a bean, when the vital-configs module is used. If not running with the vital-configs module, the annotated bean will not be instantiated by Spring.

Link copied to clipboard
class RequiresVitalHolograms : Condition

Convenience-condition to mark a class to only be loaded as a bean, when the vital-holograms module is used. If not running with the vital-holograms module, the annotated bean will not be instantiated by Spring.

Link copied to clipboard
class RequiresVitalInventories : Condition

Convenience-condition to mark a class to only be loaded as a bean, when the vital-inventories modules is used. If not running with the vital-inventories module, the annotated bean will not be instantiated by Spring.

Link copied to clipboard
class RequiresVitalItems : Condition

Convenience-condition to mark a class to only be loaded as a bean, when the vital-items module is used. If not running with the vital-items module, the annotated bean will not be instantiated by Spring.

Link copied to clipboard
class RequiresVitalLocalization : Condition

Convenience-condition to mark a class to only be loaded as a bean, when the vital-localization module is used. If not running with the vital-localization module, the annotated bean will not be instantiated by Spring.

Link copied to clipboard
class RequiresVitalMinigames : Condition

Convenience-condition to mark a class to only be loaded as a bean, when the vital-minigames module is used. If not running with the vital-minigames module, the annotated bean will not be instantiated by Spring.

Link copied to clipboard
class RequiresVitalPlayers : Condition

Convenience-condition to mark a class to only be loaded as a bean, when the vital-players module is used. If not running with the vital-players module, the annotated bean will not be instantiated by Spring.

Link copied to clipboard
class RequiresVitalScoreboards : Condition

Convenience-condition to mark a class to only be loaded as a bean, when the vital-scoreboards module is used. If not running with the vital-scoreboards module, the annotated bean will not be instantiated by Spring.

Link copied to clipboard
class RequiresVitalStatistics : Condition

Convenience-condition to mark a class to only be loaded as a bean, when the vital-statistics module is used. If not running with the vital-statistics module, the annotated bean will not be instantiated by Spring.

Link copied to clipboard
class RequiresVitalTasks : Condition

Convenience-condition to mark a class to only be loaded as a bean, when the vital-tasks module is used. If not running with the vital-tasks module, the annotated bean will not be instantiated by Spring.

Link copied to clipboard
class RequiresVitalUtils : Condition

Convenience-condition to mark a class to only be loaded as a bean, when the vital-utils module is used. If not running with the vital-utils module, the annotated bean will not be instantiated by Spring.

Link copied to clipboard
typealias SpigotBStatsMetrics = Metrics
Link copied to clipboard
typealias SpigotCancellable = Cancellable
Link copied to clipboard
typealias SpigotCommandSender = CommandSender
Link copied to clipboard
typealias SpigotEvent = Event
Link copied to clipboard
typealias SpigotEventHandler = EventHandler
Link copied to clipboard
typealias SpigotEventPriority = EventPriority
Link copied to clipboard
typealias SpigotListener = Listener
Link copied to clipboard
typealias SpigotPlayer = Player
Link copied to clipboard
typealias SpigotPlugin = JavaPlugin
Link copied to clipboard
typealias SpigotRunnable = BukkitRunnable
Link copied to clipboard
typealias SpigotTask = BukkitTask
Link copied to clipboard
interface VitalBStatsInitialization<T> : InitializingBean

Internal interface; setups up bStats for Spigot and BungeeCord. By default, Vital enables bStats and sends its own metrics to it. To also include metrics for your own plugin, you must configure vital.core.bstats.plugin-id to your plugin id you got from bStats.

Link copied to clipboard
@ConfigurationProperties(prefix = "vital.core")
@Component
class VitalCoreConfigurationProperties(val bstats: VitalCoreConfigurationProperties.BStats = BStats())
Link copied to clipboard
Link copied to clipboard
interface VitalEntity<T>

Defines an entity managed by a VitalRepository instance. The entity may be identified by the given generic type.

Link copied to clipboard
interface VitalHasInfo

Should be used for classes that support an info annotation to provide metadata. To allow for multiple info annotations along the hierarchy path, this interface exposes a map of all registered info annotations.

Link copied to clipboard
interface VitalListener

Defines a listener within the Vital-Framework.

Link copied to clipboard
abstract class VitalListenerException(message: String, cause: Throwable) : RuntimeException

Internal exception; thrown during VitalListener lifecycles.

Link copied to clipboard
abstract class VitalModule : VitalHasInfo

A module includes additional features within the Vital ecosystem. Every module is essentially a Configuration and should define every module bean. Additionally, a module can also display what features are added, etc.

Link copied to clipboard
abstract class VitalModuleException(message: String, cause: Throwable? = null) : RuntimeException

Internal exception; thrown during VitalModule lifecycles.

Link copied to clipboard
abstract class VitalPlugin(val pluginEnvironment: VitalPlugin.PluginEnvironment)

This class defines internal functionality required to initialize and shutdown a Vital plugin and should rarely be used by developers manually. Plugin bootstrapping is automatically done via the vital-gradle-plugin and initialization is done by vital-loader.

Link copied to clipboard
abstract class VitalPluginException(message: String) : RuntimeException

Internal exception; thrown when an error occurrs during VitalPlugin lifecycles.

Link copied to clipboard
abstract class VitalRepository<T : VitalEntity<ID>, ID>

A volatile in-memory repository to store temporary data in a Spring-like repository implementation. It can store implementations of VitalEntity and the means to get, save and delete them.

Link copied to clipboard
class VitalResourceLoader : DefaultResourceLoader

Internal spring resource loader responsible for locating resources in the spring context. Will strip any protocol from requested resources to enable correct resource loading.

Link copied to clipboard
interface VitalShutdownHandler : InitializingBean

Internal handler; responsible for gracefully shutting down Vital when server shutdown is requested.

Link copied to clipboard

Main spring configuration for the implementing plugin. Exposes the plugin as a bean to fix classpath scanning errors when ide scans for beans.