mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 21:05:07 +00:00
Custom Effects and Player Events API
This commit is contained in:
1 parent
f91f9b43ba
commit
5a8246f728
4 files changed
+168
No files matched your search
@@ -7,6 +7,7 @@ import noppes.npcs.api.IDamageSource;
|
||||
import noppes.npcs.api.entity.IEntity;
|
||||
import noppes.npcs.api.entity.IEntityLivingBase;
|
||||
import noppes.npcs.api.entity.IPlayer;
|
||||
import noppes.npcs.api.handler.data.IPlayerEffect;
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
|
||||
public interface IPlayerEvent extends ICustomNPCsEvent {
|
||||
@@ -268,4 +269,29 @@ public interface IPlayerEvent extends ICustomNPCsEvent {
|
||||
|
||||
interface RangedChargeEvent extends IPlayerEvent {
|
||||
}
|
||||
|
||||
interface EffectEvent extends IPlayerEvent {
|
||||
|
||||
IPlayerEffect getEffect();
|
||||
|
||||
interface Added extends EffectEvent {
|
||||
|
||||
}
|
||||
interface Ticked extends EffectEvent {
|
||||
|
||||
}
|
||||
interface Removed extends EffectEvent {
|
||||
|
||||
/**
|
||||
* @return If the effect timer has ticked down to 0.
|
||||
*/
|
||||
boolean hasTimerRunOut();
|
||||
|
||||
/**
|
||||
* @return If the effect was removed on death.
|
||||
*/
|
||||
boolean causedByDeath();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user