From 35cdd6627206248f1a82509049006365d3f3273a Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 1 Aug 2015 16:47:21 +1000 Subject: [PATCH] SPIGOT-1076: Add HurtEntities API for FallingBlock. By: md_5 --- .../main/java/org/bukkit/entity/FallingBlock.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/FallingBlock.java b/paper-api/src/main/java/org/bukkit/entity/FallingBlock.java index 1edd6e0659..bc56fa2223 100644 --- a/paper-api/src/main/java/org/bukkit/entity/FallingBlock.java +++ b/paper-api/src/main/java/org/bukkit/entity/FallingBlock.java @@ -45,4 +45,18 @@ public interface FallingBlock extends Entity { * @param drop true to break into an item when obstructed */ void setDropItem(boolean drop); + + /** + * Get the HurtEntities state of this block. + * + * @return whether entities will be damaged by this block. + */ + boolean canHurtEntities(); + + /** + * Set the HurtEntities state of this block. + * + * @param hurtEntities whether entities will be damaged by this block. + */ + void setHurtEntities(boolean hurtEntities); }