getLocation

public abstract Location getLocation()

Gets the location of this block

Return

location


public abstract Location getLocation(Location loc)

Stores the location of this block 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