diff options
author | md_5 <git@md-5.net> | 2015-08-01 16:47:21 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2015-09-19 09:27:22 +1000 |
commit | 31d4f76a1510fa4810a917af05eeceec03d4b98a (patch) | |
tree | f2bc47be6fc97b336c0154bba2718d7d1aa54f0b | |
parent | 5c985d814b5eb048ac1bad08ef85f3a2ea412f80 (diff) | |
download | bukkit-31d4f76a1510fa4810a917af05eeceec03d4b98a.tar bukkit-31d4f76a1510fa4810a917af05eeceec03d4b98a.tar.gz bukkit-31d4f76a1510fa4810a917af05eeceec03d4b98a.tar.lz bukkit-31d4f76a1510fa4810a917af05eeceec03d4b98a.tar.xz bukkit-31d4f76a1510fa4810a917af05eeceec03d4b98a.zip |
SPIGOT-1076: Add HurtEntities API for FallingBlock.
-rw-r--r-- | src/main/java/org/bukkit/entity/FallingBlock.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/FallingBlock.java b/src/main/java/org/bukkit/entity/FallingBlock.java index 1edd6e06..bc56fa22 100644 --- a/src/main/java/org/bukkit/entity/FallingBlock.java +++ b/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); } |