From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Nik Gil Date: Mon, 29 Feb 2016 19:42:10 -0600 Subject: [PATCH] Made EntityDismountEvent Cancellable diff --git a/src/main/java/org/spigotmc/event/entity/EntityDismountEvent.java b/src/main/java/org/spigotmc/event/entity/EntityDismountEvent.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/spigotmc/event/entity/EntityDismountEvent.java +++ b/src/main/java/org/spigotmc/event/entity/EntityDismountEvent.java @@ -0,0 +0,0 @@ package org.spigotmc.event.entity; import org.bukkit.entity.Entity; +import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.bukkit.event.entity.EntityEvent; @@ -0,0 +0,0 @@ import org.bukkit.event.entity.EntityEvent; * Called when an entity stops riding another entity. * */ -public class EntityDismountEvent extends EntityEvent +public class EntityDismountEvent extends EntityEvent implements Cancellable // Paper - implement Cancellable { private static final HandlerList handlers = new HandlerList(); @@ -0,0 +0,0 @@ public class EntityDismountEvent extends EntityEvent { return handlers; } + + // Paper start - Implement cancellable methods + @Override + public boolean isCancelled() { + return cancelled; + } + + @Override + public void setCancelled(boolean cancelled) { + this.cancelled = cancelled; + } + // Paper end } --