Entity Origin API
This commit is contained in:
@@ -53,4 +53,15 @@ public interface TNTPrimed extends Explosive {
|
||||
* @param source the source of this primed TNT
|
||||
*/
|
||||
public void setSource(@Nullable Entity source);
|
||||
|
||||
/**
|
||||
* Gets the source block location of the TNTPrimed
|
||||
*
|
||||
* @return the source block location the TNTPrimed 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