Item

data class Item(val amount: UByte, val itemId: UInt, val skinId: UInt? = null, val firstUpgradeSlot: UInt? = null, val secondUpgradeSlot: UInt? = null) : ChatLink(source)

A link to a stack of items.

Only the shape of the parameters (e.g. list sizes) is validated and not the actual data (e.g. ID validity).

Since

0.1.0

Parameters

amount

the amount of items

itemId

the ID of the item. (Must be in unsigned 24bit range.)

skinId

the ID of the item's skin. (Must be in unsigned 24bit range.)

firstUpgradeSlot

the ID of the item's first upgrade slot's content. (Must be in unsigned 24bit range.)

secondUpgradeSlot

the ID of the item's second upgrade slot's content. (Must be in unsigned 24bit range.)

Throws

if any parameter value does not match its expected shape

Constructors

Link copied to clipboard
constructor(amount: UByte, itemId: UInt, skinId: UInt? = null, firstUpgradeSlot: UInt? = null, secondUpgradeSlot: UInt? = null)

Properties

Link copied to clipboard
@get:JvmName(name = "getAmount")
val amount: UByte
Link copied to clipboard
@get:JvmName(name = "getFirstUpgradeSlot")
val firstUpgradeSlot: UInt? = null
Link copied to clipboard
@get:JvmName(name = "getItemId")
val itemId: UInt
Link copied to clipboard
@get:JvmName(name = "getSecondUpgradeSlot")
val secondUpgradeSlot: UInt? = null
Link copied to clipboard
@get:JvmName(name = "getSkinId")
val skinId: UInt? = null