com.skillw.attsystem.api.event.EquipmentUpdateEvent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of AttributeSystem Show documentation
Show all versions of AttributeSystem Show documentation
Bukkit Attribute Engine Plugin.
The newest version!
package com.skillw.attsystem.api.event
import com.skillw.attsystem.api.equipment.EquipmentDataCompound
import org.bukkit.entity.Entity
import taboolib.platform.type.BukkitProxyEvent
class EquipmentUpdateEvent {
/**
* 装备更新前事件
*
* @property entity 实体
* @property data 装备数据集
*/
class Pre(
val entity: Entity,
val data: EquipmentDataCompound,
) : BukkitProxyEvent() {
override val allowCancelled = false
}
/**
* 装备更新中事件
*
* @property entity 实体
* @property data 装备数据集
*/
class Process(
val entity: Entity,
val data: EquipmentDataCompound,
) : BukkitProxyEvent() {
override val allowCancelled = false
}
/**
* 装备更新后事件
*
* @property entity 实体
* @property data 装备数据集
*/
class Post(
val entity: Entity,
val data: EquipmentDataCompound,
) : BukkitProxyEvent() {
override val allowCancelled = false
}
}