FullSetBonus

open class FullSetBonus(val name: String, val description: String, val threePiece: Boolean = false) : AbilityBase(source)

A wrapper for abstract AbilityBase, which provides some minor features. Can also be inherited for more abstraction.

Note that this ability is also rendered as Full Set Bonus: <name>, and does not accept ability types, so make sure to inherit it and override the buildLore method to inject your own type.

Parameters

name

Name of the ability. Supports MM tags.

description

Description of this ability. Will be partitioned to 25 chars per line, not including MM tags

Inheritors

Constructors

Link copied to clipboard
constructor(name: String, description: String, threePiece: Boolean = false)

Creates a new full set bonus ability

Functions

Link copied to clipboard
open override fun buildLore(lore: MutableList<Component>, player: MacrocosmPlayer?)

Builds and inserts the ability name and descriptions in provided lore list

Link copied to clipboard

Ensures that the provided player has set with this ability

Link copied to clipboard

You have to override this function, and register listeners there (net.axay.kspigot.event.listen)), this is where all the ability logic is defined at

Properties

Link copied to clipboard
open override val cost: AbilityCost? = null

Cost to perform this ability

Link copied to clipboard
open override val description: String

Description of this ability. Will later be partitioned for every 25 characters, not including MM tags

Link copied to clipboard
open override val id: Identifier

ID of this ability, got from the Registry.ABILITY)

Link copied to clipboard
open override val name: String

Name of this ability. It is later parsed using MiniMessage, therefore may contain MM tags

Link copied to clipboard
val threePiece: Boolean = false
Link copied to clipboard
open override val type: AbilityType

Type of this ability, only used for visual lore display