mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 23:25:08 +00:00
Add Hook Name to Custom Hooks
This commit is contained in:
1 parent
d6450380c7
commit
76ce22d713
12 files changed
+143
-1
No files matched your search
@@ -8,6 +8,9 @@ import noppes.npcs.api.entity.IPlayer;
|
||||
|
||||
public interface IBlockEvent extends ICustomNPCsEvent {
|
||||
IBlock getBlock();
|
||||
/**
|
||||
* @hookName fallenUpon
|
||||
*/
|
||||
@Cancelable
|
||||
interface EntityFallenUponEvent extends IBlockEvent{
|
||||
IEntity getEntity();
|
||||
@@ -31,6 +34,9 @@ public interface IBlockEvent extends ICustomNPCsEvent {
|
||||
int getPrevPower();
|
||||
int getPower();
|
||||
}
|
||||
/**
|
||||
* @hookName broken
|
||||
*/
|
||||
interface BreakEvent extends IBlockEvent{
|
||||
|
||||
}
|
||||
@@ -38,6 +44,9 @@ public interface IBlockEvent extends ICustomNPCsEvent {
|
||||
interface ExplodedEvent extends IBlockEvent{
|
||||
|
||||
}
|
||||
/**
|
||||
* @hookName rainFilled
|
||||
*/
|
||||
interface RainFillEvent extends IBlockEvent{
|
||||
|
||||
}
|
||||
@@ -49,6 +58,9 @@ public interface IBlockEvent extends ICustomNPCsEvent {
|
||||
interface InitEvent extends IBlockEvent{
|
||||
|
||||
}
|
||||
/**
|
||||
* @hookName tick
|
||||
*/
|
||||
interface UpdateEvent extends IBlockEvent{
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user