mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 03:25:02 +00:00
Implemented 1.12 event scripting API.
This commit is contained in:
1 parent
feeef71b5a
commit
bb1da8376d
8 files changed
+174
-87
No files matched your search
@@ -249,15 +249,25 @@ public class PlayerEvent extends CustomNPCsEvent {
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
public static class TossEvent extends PlayerEvent {
|
||||
public static class DropEvent extends PlayerEvent {
|
||||
public final IItemStack[] items;
|
||||
|
||||
public TossEvent(IPlayer player, IItemStack[] items) {
|
||||
public DropEvent(IPlayer player, IItemStack[] items) {
|
||||
super(player);
|
||||
this.items = items;
|
||||
}
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
public static class TossEvent extends PlayerEvent {
|
||||
public final IItemStack item;
|
||||
|
||||
public TossEvent(IPlayer player, IItemStack item) {
|
||||
super(player);
|
||||
this.item = item;
|
||||
}
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
public static class AttackEvent extends PlayerEvent {
|
||||
public final int type;
|
||||
|
||||
Reference in new issue
Block a user