SPIGOT-2765: Add different reasons for HangingBreakByEntityEvent

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2016-11-23 10:33:47 +11:00
parent 63312e6e8a
commit 6b2a91f2a4

View file

@ -10,7 +10,11 @@ public class HangingBreakByEntityEvent extends HangingBreakEvent {
private final Entity remover; private final Entity remover;
public HangingBreakByEntityEvent(final Hanging hanging, 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; this.remover = remover;
} }