Class WrapperPlayServerMultiBlockChange.EncodedBlock
java.lang.Object
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerMultiBlockChange.EncodedBlock
- Enclosing class:
WrapperPlayServerMultiBlockChange
-
Constructor Summary
ConstructorDescriptionEncodedBlock
(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 TypeMethodDescriptionint
getBlockState
(ClientVersion version) int
getX()
int
getY()
int
getZ()
void
setBlockId
(int blockID) void
setBlockState
(WrappedBlockState blockState) void
setX
(int x) void
setY
(int y) void
setZ
(int z) long
toLong()
-
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
-