mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-19 14:51:27 +01:00
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 <evilseph@gmail.com>
This commit is contained in:
parent
f3262382e5
commit
5461da9470
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user