Merge branch 'refs/heads/dev' into animation-events-2

This commit is contained in:
luisc committed 2025-02-11 16:55:14 -06:00
commit 14bc09c4c8
8 files changed
+243 -18

No files matched your search

@@ -0,0 +1,10 @@
package noppes.npcs.api.event;
public interface ILinkedItemEvent extends IItemEvent {
// Version Change Event
// onBreakEvent if Durability Expires or Consumed
// onRepairEvent
}
@@ -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();
}
}
}