From 5461da947036718a1757e42b6022537ec8d75bb1 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 31 Oct 2012 13:53:24 -0400 Subject: [PATCH] Add EXPLOSION and DEFAULT RemoveCauses to the HangingBreakEvent. EXPLOSION is used when a hanging entity is removed by an explosion. DEFAULT is used when a hanging entity is removed by an uncategorised cause. By: EvilSeph --- .../java/org/bukkit/event/hanging/HangingBreakEvent.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/event/hanging/HangingBreakEvent.java b/paper-api/src/main/java/org/bukkit/event/hanging/HangingBreakEvent.java index ef655dbf37..87bbdcbaca 100644 --- a/paper-api/src/main/java/org/bukkit/event/hanging/HangingBreakEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/hanging/HangingBreakEvent.java @@ -42,6 +42,10 @@ public class HangingBreakEvent extends HangingEvent implements Cancellable { * Removed by an entity */ ENTITY, + /** + * Removed by an explosion + */ + EXPLOSION, /** * Removed by placing a block on it */ @@ -50,6 +54,10 @@ public class HangingBreakEvent extends HangingEvent implements Cancellable { * Removed by destroying the block behind it, etc */ PHYSICS, + /** + * Removed by an uncategorised cause + */ + DEFAULT, } @Override