Interface BlockChangeRecord
- All Known Implementing Classes:
BlockChangeRecord1_16_2,BlockChangeRecord1_8
public interface BlockChangeRecord
-
Method Summary
Modifier and TypeMethodDescriptionintbyteReturns the relative x coordinate within the chunk section.byteReturns the relative y coordinate within the chunk section.byteReturns the relative z coordinate within the chunk section.default shortgetY()Returns the absolute y coordinate - only works for sub 1.16 protocols.shortgetY(int chunkSectionY) Returns the absolute y coordinate based on the given chunk section y.voidsetBlockId(int blockId)
-
Method Details
-
getSectionX
byte getSectionX()Returns the relative x coordinate within the chunk section.- Returns:
- relative x coordinate within the chunk section
-
getSectionY
byte getSectionY()Returns the relative y coordinate within the chunk section.- Returns:
- relative y coordinate within the chunk section
-
getSectionZ
byte getSectionZ()Returns the relative z coordinate within the chunk section.- Returns:
- relative z coordinate within the chunk section
-
getY
short getY(int chunkSectionY) Returns the absolute y coordinate based on the given chunk section y.- Parameters:
chunkSectionY- chunk section- Returns:
- absolute y coordinate
-
getY
default short getY()Returns the absolute y coordinate - only works for sub 1.16 protocols.- Returns:
- absolute y coordinate
-
getBlockId
int getBlockId() -
setBlockId
void setBlockId(int blockId)
-