mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 23:29:41 +00:00
Marked events that can be cancelled as cancellable if they didn't have the annotation.
This commit is contained in:
1 parent
1ddc316230
commit
78357165a2
3 files changed
+15
-1
No files matched your search
@@ -665,6 +665,7 @@ public class PlayerEvent extends CustomNPCsEvent implements IPlayerEvent {
|
||||
}
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
public static class StartUsingItem extends PlayerEvent implements IPlayerEvent.StartUsingItem {
|
||||
public final IItemStack item;
|
||||
public final int duration;
|
||||
@@ -688,6 +689,8 @@ public class PlayerEvent extends CustomNPCsEvent implements IPlayerEvent {
|
||||
return duration;
|
||||
}
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
public static class UsingItem extends PlayerEvent implements IPlayerEvent.UsingItem {
|
||||
public final IItemStack item;
|
||||
public final int duration;
|
||||
@@ -711,6 +714,8 @@ public class PlayerEvent extends CustomNPCsEvent implements IPlayerEvent {
|
||||
return duration;
|
||||
}
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
public static class StopUsingItem extends PlayerEvent implements IPlayerEvent.StopUsingItem {
|
||||
public final IItemStack item;
|
||||
public final int duration;
|
||||
@@ -734,6 +739,7 @@ public class PlayerEvent extends CustomNPCsEvent implements IPlayerEvent {
|
||||
return duration;
|
||||
}
|
||||
}
|
||||
|
||||
public static class FinishUsingItem extends PlayerEvent implements IPlayerEvent.FinishUsingItem {
|
||||
public final IItemStack item;
|
||||
public final int duration;
|
||||
@@ -938,6 +944,7 @@ public class PlayerEvent extends CustomNPCsEvent implements IPlayerEvent {
|
||||
}
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
public static class RangedChargeEvent extends PlayerEvent implements IPlayerEvent.RangedChargeEvent {
|
||||
public RangedChargeEvent(IPlayer player) {
|
||||
super(player);
|
||||
|
||||
Reference in new issue
Block a user