From 6cebaa530ce3692dea9273f0eb47df7e762e99c9 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 20 Nov 2012 16:54:43 -0600 Subject: [PATCH] Add DamageCause for FallingBlocks. Adds BUKKIT-2781 By: feildmaster --- .../org/bukkit/event/entity/EntityDamageEvent.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java index 5238cd58ee..c2b4862412 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java @@ -166,13 +166,13 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable { STARVATION, /** * Damage caused due to an ongoing poison effect - * + *

* Damage: 1 */ POISON, /** * Damage caused by being hit by a damage potion or spell - * + *

* Damage: variable */ MAGIC, @@ -180,6 +180,14 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable { * */ WITHER, + /** + * Damage caused by being hit by a falling block which deals damage + *

+ * Note: Not every block deals damage + *

+ * Damage: variable + */ + FALLING_BLOCK, /** * Custom damage. *