Implemented 1.12 event scripting API.

This commit is contained in:
luisc committed 2021-10-18 22:01:15 -05:00
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;