Entity Origin API

This commit is contained in:
Byteflux
2016-02-29 17:50:31 -06:00
parent 05ec73f817
commit 0cf4a9a62e
3 changed files with 32 additions and 0 deletions

View File

@@ -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();
}
}