From f5378fcb0539f4f8a8326a10d8a835b755218295 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 9 Jun 2016 12:45:01 +1000 Subject: [PATCH] Add DamageCause.HOT_FLOOR By: md_5 --- .../java/org/bukkit/event/entity/EntityDamageEvent.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 3a5a42a065..0201d597bd 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 @@ -4,6 +4,7 @@ import java.util.EnumMap; import java.util.Map; import org.apache.commons.lang.Validate; +import org.bukkit.Material; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; @@ -424,6 +425,12 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable { *

* Damage: variable */ - FLY_INTO_WALL + FLY_INTO_WALL, + /** + * Damage caused when an entity steps on {@link Material#MAGMA}. + *

+ * Damage: 1 + */ + HOT_FLOOR } }