13
0
geforkt von Mirrors/Paper

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>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2012-10-31 13:53:24 -04:00
Ursprung f3262382e5
Commit 5461da9470

Datei anzeigen

@ -42,6 +42,10 @@ public class HangingBreakEvent extends HangingEvent implements Cancellable {
* Removed by an entity * Removed by an entity
*/ */
ENTITY, ENTITY,
/**
* Removed by an explosion
*/
EXPLOSION,
/** /**
* Removed by placing a block on it * 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 * Removed by destroying the block behind it, etc
*/ */
PHYSICS, PHYSICS,
/**
* Removed by an uncategorised cause
*/
DEFAULT,
} }
@Override @Override