getLocation

public abstract Location getLocation()

Gets the entity's current position

Return

getClassById new copy of Location containing the position of this entity


public abstract Location getLocation(Location loc)

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