SPIGOT-6616: Cancellable StriderTemperatureChangeEvent
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -1585,9 +1585,10 @@ public class CraftEventFactory {
|
||||
return event;
|
||||
}
|
||||
|
||||
public static void callStriderTemperatureChangeEvent(EntityStrider strider, boolean shivering) {
|
||||
public static boolean callStriderTemperatureChangeEvent(EntityStrider strider, boolean shivering) {
|
||||
StriderTemperatureChangeEvent event = new StriderTemperatureChangeEvent((Strider) strider.getBukkitEntity(), shivering);
|
||||
Bukkit.getPluginManager().callEvent(event);
|
||||
return !event.isCancelled();
|
||||
}
|
||||
|
||||
public static boolean handleEntitySpellCastEvent(EntityIllagerWizard caster, EntityIllagerWizard.Spell spell) {
|
||||
|
||||
Reference in New Issue
Block a user