ClassDefinition

class ClassDefinition @JvmOverloads constructor(@KeyPattern.Value val id: String, val name: Component, val parents: Set<String> = emptySet(), @KeyPattern.Value val levelTrack: String? = null)(source)

Class of a ClassProvider. Classes are immutable, so they can be cached and reused.

Constructors

Link copied to clipboard
constructor(@KeyPattern.Value id: String, name: Component, parents: Set<String> = emptySet(), @KeyPattern.Value levelTrack: String? = null)

Properties

Link copied to clipboard
val id: String

Class path, like warrior or race/elf.

Link copied to clipboard

Path of this provider's level track holding the class level while the player has the class, or null if the class has no level. See LevelProvider.

Link copied to clipboard

Display name of the class defined by the plugin.

Link copied to clipboard

IDs of direct parent classes of this provider. A paladin, a subclass of a warrior, lists warrior. Empty if the class has no parents.