public class OwnedBlock extends Object implements Ownable
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
org.bukkit.block.Block |
getBlock()
Returns the Block at the location of this OwnedBlock.
|
Material |
getMaterial()
Returns the Material of the Ownable.
|
org.bukkit.World |
getWorld()
Returns the World the Ownable is in.
|
String |
getWorldName()
Returns the name of the world the Ownable is in.
|
int |
getX() |
int |
getY() |
int |
getZ() |
int |
hashCode() |
static OwnedBlock |
newInstance(org.bukkit.block.Block block)
Creates a new OwnedBlock instance holding a WeakReference to the given block.
|
static OwnedBlock |
newInstance(String worldName,
int x,
int y,
int z)
Creates a new OwnedBlock instance.
|
static OwnedBlock |
newInstance(String worldName,
int x,
int y,
int z,
Material material)
Creates a new OwnedBlock instance.
|
String |
toString() |
public static OwnedBlock newInstance(org.bukkit.block.Block block)
block - the Blockpublic static OwnedBlock newInstance(String worldName, int x, int y, int z, Material material)
worldName - the world namex - the xy - the yz - the zmaterial - the materialpublic static OwnedBlock newInstance(String worldName, int x, int y, int z)
worldName - the world namex - the xy - the yz - the zpublic int getX()
public int getY()
public int getZ()
public org.bukkit.World getWorld()
throws InvalidWorldException
OwnablegetWorld in interface OwnableInvalidWorldException - if the world referenced by the world name doesn't existpublic org.bukkit.block.Block getBlock()
throws InvalidWorldException
InvalidWorldException - if the world referenced by the world name doesn't existpublic String getWorldName()
OwnablegetWorldName in interface Ownablepublic Material getMaterial() throws InvalidWorldException
OwnablegetMaterial in interface OwnableInvalidWorldException - if the world referenced by the world name doesn't existCopyright © 2015. All rights reserved.