EntityKillCounterBonus

open class EntityKillCounterBonus(id: String, val name: String, entities: List<EntityType>, stat: Statistic, rewardTable: List<Int> = listOf( 0, 10, 25, 50, 100, 120, 130, 150, 220, 250, 300 ), table: TreeMap<Int, Int> = TreeMap( hashMapOf( 0 to 0, 10 to 1, 100 to 2, 250 to 3, 500 to 4, 1000 to 5, 2500 to 6, 5000 to 7, 8000 to 8, 12000 to 9, 15000 to 10 ) )) : AbilityBase(source)

Constructors

Link copied to clipboard
constructor(id: String, name: String, entities: List<EntityType>, stat: Statistic, rewardTable: List<Int> = listOf( 0, 10, 25, 50, 100, 120, 130, 150, 220, 250, 300 ), table: TreeMap<Int, Int> = TreeMap( hashMapOf( 0 to 0, 10 to 1, 100 to 2, 250 to 3, 500 to 4, 1000 to 5, 2500 to 6, 5000 to 7, 8000 to 8, 12000 to 9, 15000 to 10 ) ))

Functions

Link copied to clipboard
open fun addLore(item: MacrocosmItem): List<Component>
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
open override fun registerListeners()

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
open override val type: AbilityType

Type of this ability, only used for visual lore display