public final class MTLocation
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
MTLocation(java.lang.String world,
int x,
int y,
int z)
Constructs a new location with the given world and x, y and z coordinate.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
org.bukkit.block.Block |
getBlock()
Returns the block at this location.
|
int |
getBlockX()
Returns the x coordinate of the location.
|
int |
getBlockY()
Returns the y coordinate of the location.
|
int |
getBlockZ()
Returns the z coordinate of the location.
|
static MTLocation |
getMTLocationFromLocation(org.bukkit.Location loc)
Returns the custom version of Bukkit's Location.
|
int |
hashCode() |
java.lang.String |
toString() |
public MTLocation(java.lang.String world,
int x,
int y,
int z)
world - the worldx - the x coordinatey - the y coordinatez - the z coordinatepublic int getBlockX()
public int getBlockY()
public int getBlockZ()
public org.bukkit.block.Block getBlock()
public static MTLocation getMTLocationFromLocation(org.bukkit.Location loc)
loc - the Bukkit Locationpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object