ItemAttributeModifier

An attribute that can be applied to an item that modifies a specific attribute on an entity that has the item this attribute is applied to equipped.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@ApiStatus.Internal
interface Factory

Properties

Link copied to clipboard
@get:JvmName(name = "amount")
abstract val amount: Double

The amount to modify attribute values by.

Link copied to clipboard
@get:JvmName(name = "name")
abstract val name: String

The name of the modifier.

Link copied to clipboard
abstract override val operation: BasicModifierOperation

The operation to perform on the modifier.

Link copied to clipboard
@get:JvmName(name = "slot")
abstract val slot: EquipmentSlot

The slot that the item has to be in for the attribute to apply.

Link copied to clipboard
@get:JvmName(name = "type")
abstract val type: AttributeType

The type of the attribute.

Link copied to clipboard
@get:JvmName(name = "uuid")
abstract val uuid: UUID

The unique ID of the modifier.