MacrocosmAbility

Represents an item ability, that can execute various actions.

Instead of inheriting this interface explicitly, loot at implementations:

Inheritors

Types

Link copied to clipboard
object Companion

Functions

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

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

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
abstract val cost: AbilityCost?

Cost of this ability (mana, health and cooldown)

Link copied to clipboard
abstract val description: String

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

Link copied to clipboard
abstract val id: Identifier

The ID of this ability

Link copied to clipboard
abstract val name: String

Name of this ability, supports MiniMessage tags

Link copied to clipboard
abstract val type: AbilityType

Type of this ability, used only for visual purpose