Class WrapperPlayServerMultiBlockChange.EncodedBlock
java.lang.Object
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerMultiBlockChange.EncodedBlock
- Enclosing class:
- WrapperPlayServerMultiBlockChange
-
Constructor Summary
ConstructorsConstructorDescriptionEncodedBlock(int blockID, int x, int y, int z) EncodedBlock(WrappedBlockState blockState, int x, int y, int z) EncodedBlock(Vector3i chunk, long data) -
Method Summary
Modifier and TypeMethodDescriptionintgetBlockState(ClientVersion version) intgetX()intgetY()intgetZ()voidsetBlockId(int blockID) voidsetBlockState(WrappedBlockState blockState) voidsetX(int x) voidsetY(int y) voidsetZ(int z) longtoLong()
-
Constructor Details
-
EncodedBlock
public EncodedBlock(int blockID, int x, int y, int z) -
EncodedBlock
-
EncodedBlock
-
-
Method Details
-
toLong
public long toLong() -
getBlockId
public int getBlockId() -
setBlockId
public void setBlockId(int blockID) -
getBlockState
-
setBlockState
-
getX
public int getX()- Returns:
- Global X position of block
-
getY
public int getY()- Returns:
- Global Y position of block
-
getZ
public int getZ()- Returns:
- Global Z position of block
-
setX
public void setX(int x) - Parameters:
x- Global X position of block
-
setY
public void setY(int y) - Parameters:
y- Global Y position of block
-
setZ
public void setZ(int z) - Parameters:
z- Global Z position of block
-