mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-17 20:25:15 +00:00
Fix DBC Toggle Abilities and Wheel System
This commit is contained in:
1 parent
ca2980909e
commit
2c2f0c0d8f
4 files changed
+124
No files matched your search
@@ -58,6 +58,28 @@ public interface IAbilityEvent extends INpcEvent {
|
||||
interface CompleteEvent extends IAbilityEvent {
|
||||
}
|
||||
|
||||
/**
|
||||
* Fired when a toggle ability is switched ON or OFF.
|
||||
* Canceling prevents the toggle from changing state.
|
||||
*/
|
||||
@Cancelable
|
||||
interface ToggleEvent extends IAbilityEvent {
|
||||
boolean isTogglingOn();
|
||||
int getOldState();
|
||||
int getNewState();
|
||||
}
|
||||
|
||||
/**
|
||||
* Fired every 10 ticks for each active toggle ability.
|
||||
* Scripts can call setEnabled(false) to force-deactivate.
|
||||
*/
|
||||
interface ToggleUpdateEvent extends IAbilityEvent {
|
||||
int getTick();
|
||||
int getState();
|
||||
boolean isEnabled();
|
||||
void setEnabled(boolean enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fired when an ability hits an entity with damage.
|
||||
* Canceling this event prevents the damage from being applied.
|
||||
|
||||
Reference in new issue
Block a user