Entity Origin API
This commit is contained in:
@@ -126,4 +126,15 @@ public interface FallingBlock extends Entity {
|
||||
* @param damage the max damage to set. Must be >= 0
|
||||
*/
|
||||
void setMaxDamage(int damage);
|
||||
|
||||
/**
|
||||
* Gets the source block location of the FallingBlock
|
||||
*
|
||||
* @return the source block location the FallingBlock was spawned from
|
||||
* @deprecated replaced by {@link Entity#getOrigin()}
|
||||
*/
|
||||
@Deprecated
|
||||
default org.bukkit.Location getSourceLoc() {
|
||||
return this.getOrigin();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user