CollectionCompound

A compound which contains all collections of a player

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
operator fun get(coll: CollectionType): Int

Gets total amount of items collected for a certain collection type

Link copied to clipboard
fun increase(coll: CollectionType, amount: Int): Boolean

Increases total amount of items collected for a certain collection type by amount

Link copied to clipboard
Link copied to clipboard

Gets collection level for a certain collection type

Link copied to clipboard

Converts this collection to a json string to be stored inside a database

Link copied to clipboard
operator fun set(coll: CollectionType, total: Int)

Sets total amount of items collected for a certain collection type

Link copied to clipboard
fun setLevel(coll: CollectionType, lvl: Int)

Sets collection level for a certain collection type

Properties

Link copied to clipboard