public class MultiBlockChangeInfo extends Object
| Constructor and Description |
|---|
MultiBlockChangeInfo(org.bukkit.Location location,
WrappedBlockData data) |
MultiBlockChangeInfo(short location,
WrappedBlockData data,
ChunkCoordIntPair chunk) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAbsoluteX()
Gets this block change's absolute x coordinate.
|
int |
getAbsoluteZ()
Gets this block change's absolute z coordinate.
|
static EquivalentConverter<MultiBlockChangeInfo[]> |
getArrayConverter(ChunkCoordIntPair chunk) |
ChunkCoordIntPair |
getChunk()
Gets the chunk this block change occured in.
|
static EquivalentConverter<MultiBlockChangeInfo> |
getConverter(ChunkCoordIntPair chunk) |
WrappedBlockData |
getData()
Gets this block change's block data.
|
org.bukkit.Location |
getLocation(org.bukkit.World world)
Returns this block change's absolute Location in a given World.
|
int |
getX()
Gets this block change's relative x coordinate.
|
int |
getY()
Gets this block change's y coordinate.
|
int |
getZ()
Gets this block change's relative z coordinate.
|
void |
setData(WrappedBlockData data)
Sets this block change's block data.
|
void |
setLocation(int x,
int y,
int z)
Sets this block change's absolute coordinates.
|
void |
setLocation(org.bukkit.Location location)
Sets this block change's absolute Location.
|
void |
setX(int x)
Sets this block change's absolute x coordinate.
|
void |
setY(int y)
Sets this block change's y coordinate
|
void |
setZ(int z)
Sets this block change's relative z coordinate.
|
public MultiBlockChangeInfo(short location,
WrappedBlockData data,
ChunkCoordIntPair chunk)
public MultiBlockChangeInfo(org.bukkit.Location location,
WrappedBlockData data)
public org.bukkit.Location getLocation(org.bukkit.World world)
world - World for the locationpublic void setLocation(org.bukkit.Location location)
location - This block change's new locationpublic void setLocation(int x,
int y,
int z)
x - X coordinatey - Y coordinatez - Z coordinatepublic int getX()
public int getAbsoluteX()
public void setX(int x)
x - New x coordinatepublic int getY()
public void setY(int y)
y - New y coordinatepublic int getZ()
public int getAbsoluteZ()
public void setZ(int z)
z - New z coordinatepublic WrappedBlockData getData()
public void setData(WrappedBlockData data)
data - New block datapublic ChunkCoordIntPair getChunk()
public static EquivalentConverter<MultiBlockChangeInfo> getConverter(ChunkCoordIntPair chunk)
public static EquivalentConverter<MultiBlockChangeInfo[]> getArrayConverter(ChunkCoordIntPair chunk)
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.