From d3dc42fb5ba3a934b78f0ced14011facb075887d Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 22 Nov 2015 14:37:11 +1300 Subject: [PATCH] EntityDismountEvent diff --git a/src/main/java/org/spigotmc/event/entity/EntityDismountEvent.java b/src/main/java/org/spigotmc/event/entity/EntityDismountEvent.java index 24d4942..02943d6 100644 --- a/src/main/java/org/spigotmc/event/entity/EntityDismountEvent.java +++ b/src/main/java/org/spigotmc/event/entity/EntityDismountEvent.java @@ -2,13 +2,14 @@ package org.spigotmc.event.entity; import org.bukkit.entity.Entity; import org.bukkit.event.HandlerList; +import org.bukkit.event.Cancellable; 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 { private static final HandlerList handlers = new HandlerList(); @@ -36,4 +37,17 @@ public class EntityDismountEvent extends EntityEvent { return handlers; } + + @Override + public boolean isCancelled() + { + return cancelled; + } + + @Override + public void setCancelled(boolean cancel) + { + this.cancelled = cancel; + } + } -- 2.7.4