mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
SPIGOT-1076: Add HurtEntities API for FallingBlock.
This commit is contained in:
parent
5c985d814b
commit
31d4f76a15
1 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue