getLocation

public abstract Location getLocation()

Gets the Location of the block

Return

Location of block


public abstract Location getLocation(Location loc)

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