From 6b2a91f2a45fd8eb48bb3225f7ed44182ee8ae44 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 23 Nov 2016 10:33:47 +1100 Subject: [PATCH] SPIGOT-2765: Add different reasons for HangingBreakByEntityEvent By: md_5 --- .../org/bukkit/event/hanging/HangingBreakByEntityEvent.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/event/hanging/HangingBreakByEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/hanging/HangingBreakByEntityEvent.java index 80851ed0ab..d371168792 100644 --- a/paper-api/src/main/java/org/bukkit/event/hanging/HangingBreakByEntityEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/hanging/HangingBreakByEntityEvent.java @@ -10,7 +10,11 @@ public class HangingBreakByEntityEvent extends HangingBreakEvent { private final Entity remover; public HangingBreakByEntityEvent(final Hanging hanging, final Entity remover) { - super(hanging, HangingBreakEvent.RemoveCause.ENTITY); + this(hanging, remover, HangingBreakEvent.RemoveCause.ENTITY); + } + + public HangingBreakByEntityEvent(final Hanging hanging, final Entity remover, final HangingBreakEvent.RemoveCause cause) { + super(hanging, cause); this.remover = remover; }