Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add DamageCause for FallingBlocks. Adds BUKKIT-2781

  • Loading branch information...
commit e31418234f752a725c27fb0729dac9a0e74dfeea 1 parent 9470616
@feildmaster feildmaster authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 src/main/java/org/bukkit/event/entity/EntityDamageEvent.java
View
12 src/main/java/org/bukkit/event/entity/EntityDamageEvent.java
@@ -166,13 +166,13 @@ public static HandlerList getHandlerList() {
STARVATION,
/**
* Damage caused due to an ongoing poison effect
- *
+ * <p />
* Damage: 1
*/
POISON,
/**
* Damage caused by being hit by a damage potion or spell
- *
+ * <p />
* Damage: variable
*/
MAGIC,
@@ -181,6 +181,14 @@ public static HandlerList getHandlerList() {
*/
WITHER,
/**
+ * Damage caused by being hit by a falling block which deals damage
+ * <p />
+ * <b>Note:</b> Not every block deals damage
+ * <p />
+ * Damage: variable
+ */
+ FALLING_BLOCK,
+ /**
* Custom damage.
* <p />
* Damage: variable
Please sign in to comment.
Something went wrong with that request. Please try again.