mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00: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.
This commit is contained in:
parent
3d4100a327
commit
414f949379
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue