mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
SPIGOT-2765: Add different reasons for HangingBreakByEntityEvent
This commit is contained in:
parent
649f9d0349
commit
99d9e07ccd
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue