mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
SPIGOT-2765: Add different reasons for HangingBreakByEntityEvent
By: md_5 <git@md-5.net>
This commit is contained in:
parent
63312e6e8a
commit
6b2a91f2a4
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue