2016-04-25 02:37:18 +02:00
|
|
|
From d3dc42fb5ba3a934b78f0ced14011facb075887d Mon Sep 17 00:00:00 2001
|
2015-11-22 02:44:32 +01:00
|
|
|
From: libraryaddict <libraryaddict115@yahoo.co.nz>
|
|
|
|
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;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
}
|
|
|
|
--
|
2016-04-25 02:19:41 +02:00
|
|
|
2.7.4
|
2015-11-22 02:44:32 +01:00
|
|
|
|