Permalink
Browse files

Add DamageCause for FallingBlocks. Adds BUKKIT-2781

  • Loading branch information...
feildmaster committed Nov 20, 2012
1 parent 9470616 commit e31418234f752a725c27fb0729dac9a0e74dfeea
Showing with 10 additions and 2 deletions.
  1. +10 −2 src/main/java/org/bukkit/event/entity/EntityDamageEvent.java
@@ -166,20 +166,28 @@ 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,
/**
*
*/
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 />

0 comments on commit e314182

Please sign in to comment.