mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 09:11:26 +01:00
SPIGOT-1076: Add HurtEntities API for FallingBlock.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
ef91dacfe8
commit
35cdd66272
@ -45,4 +45,18 @@ public interface FallingBlock extends Entity {
|
|||||||
* @param drop true to break into an item when obstructed
|
* @param drop true to break into an item when obstructed
|
||||||
*/
|
*/
|
||||||
void setDropItem(boolean drop);
|
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…
Reference in New Issue
Block a user