get Location
Gets the entity's current position
Return
getClassById new copy of Location containing the position of this entity
Stores the entity's current position in the provided Location object.
If the provided Location is null this method does nothing and returns null.
Return
The Location object provided or null
Parameters
loc
the location to copy into