Package com.comphenix.protocol.wrappers
Class MultiBlockChangeInfo
java.lang.Object
com.comphenix.protocol.wrappers.MultiBlockChangeInfo
Represents a single block change.
- Author:
- dmulloy2
-
Constructor Summary
ConstructorsConstructorDescriptionMultiBlockChangeInfo(short location, WrappedBlockData data, ChunkCoordIntPair chunk)MultiBlockChangeInfo(org.bukkit.Location location, WrappedBlockData data) -
Method Summary
Modifier and TypeMethodDescriptionintGets this block change's absolute x coordinate.intGets this block change's absolute z coordinate.getChunk()Gets the chunk this block change occured in.getConverter(ChunkCoordIntPair chunk)getData()Gets this block change's block data.org.bukkit.LocationgetLocation(org.bukkit.World world)Returns this block change's absolute Location in a given World.intgetX()Gets this block change's relative x coordinate.intgetY()Gets this block change's y coordinate.intgetZ()Gets this block change's relative z coordinate.voidsetData(WrappedBlockData data)Sets this block change's block data.voidsetLocation(int x, int y, int z)Sets this block change's absolute coordinates.voidsetLocation(org.bukkit.Location location)Sets this block change's absolute Location.voidsetX(int x)Sets this block change's absolute x coordinate.voidsetY(int y)Sets this block change's y coordinatevoidsetZ(int z)Sets this block change's relative z coordinate.
-
Constructor Details
-
MultiBlockChangeInfo
-
MultiBlockChangeInfo
-
-
Method Details
-
getLocation
public org.bukkit.Location getLocation(org.bukkit.World world)Returns this block change's absolute Location in a given World.- Parameters:
world- World for the location- Returns:
- This block change's absolute Location
-
setLocation
public void setLocation(org.bukkit.Location location)Sets this block change's absolute Location.- Parameters:
location- This block change's new location
-
setLocation
public void setLocation(int x, int y, int z)Sets this block change's absolute coordinates.- Parameters:
x- X coordinatey- Y coordinatez- Z coordinate
-
getX
public int getX()Gets this block change's relative x coordinate.- Returns:
- Relative X coordinate
-
getAbsoluteX
public int getAbsoluteX()Gets this block change's absolute x coordinate.- Returns:
- Absolute X coordinate
-
setX
public void setX(int x)Sets this block change's absolute x coordinate.- Parameters:
x- New x coordinate
-
getY
public int getY()Gets this block change's y coordinate.- Returns:
- Y coordinate
-
setY
public void setY(int y)Sets this block change's y coordinate- Parameters:
y- New y coordinate
-
getZ
public int getZ()Gets this block change's relative z coordinate.- Returns:
- Relative Z coordinate
-
getAbsoluteZ
public int getAbsoluteZ()Gets this block change's absolute z coordinate.- Returns:
- Absolute Z coordinate
-
setZ
public void setZ(int z)Sets this block change's relative z coordinate.- Parameters:
z- New z coordinate
-
getData
Gets this block change's block data.- Returns:
- The block data
-
setData
Sets this block change's block data.- Parameters:
data- New block data
-
getChunk
Gets the chunk this block change occured in.- Returns:
- The chunk
-
getConverter
-