-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Glomzzz/main
feat: VanillaAttributeUpdateEvent
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/main/kotlin/com/skillw/attsystem/api/event/VanillaAttributeUpdateEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.skillw.attsystem.api.event | ||
|
||
import com.skillw.pouvoir.util.attribute.BukkitAttribute | ||
import org.bukkit.entity.Entity | ||
import taboolib.platform.type.BukkitProxyEvent | ||
|
||
/** | ||
* 原版属性更新后 | ||
* | ||
* @property entity 实体 | ||
* @property attr 属性 | ||
* @property value 属性值 | ||
*/ | ||
class VanillaAttributeUpdateEvent ( | ||
val entity: Entity, | ||
val attr: BukkitAttribute, | ||
val value: Double, | ||
) : BukkitProxyEvent() { | ||
override val allowCancelled = false | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters