public class BlockChangeRecord1_16_2 extends java.lang.Object implements BlockChangeRecord
Constructor and Description |
---|
BlockChangeRecord1_16_2(byte sectionX,
byte sectionY,
byte sectionZ,
int blockId) |
BlockChangeRecord1_16_2(int sectionX,
int sectionY,
int sectionZ,
int blockId) |
Modifier and Type | Method and Description |
---|---|
int |
getBlockId() |
byte |
getSectionX()
Returns the relative x coordinate within the chunk section.
|
byte |
getSectionY()
Returns the relative y coordinate within the chunk section.
|
byte |
getSectionZ()
Returns the relative z coordinate within the chunk section.
|
short |
getY(int chunkSectionY)
Returns the absolute y coordinate based on the given chunk section y.
|
void |
setBlockId(int blockId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getY
public BlockChangeRecord1_16_2(byte sectionX, byte sectionY, byte sectionZ, int blockId)
public BlockChangeRecord1_16_2(int sectionX, int sectionY, int sectionZ, int blockId)
public byte getSectionX()
BlockChangeRecord
getSectionX
in interface BlockChangeRecord
public byte getSectionY()
BlockChangeRecord
getSectionY
in interface BlockChangeRecord
public byte getSectionZ()
BlockChangeRecord
getSectionZ
in interface BlockChangeRecord
public short getY(int chunkSectionY)
BlockChangeRecord
getY
in interface BlockChangeRecord
chunkSectionY
- chunk sectionpublic int getBlockId()
getBlockId
in interface BlockChangeRecord
public void setBlockId(int blockId)
setBlockId
in interface BlockChangeRecord