public class BlockChangeRecord1_8 extends java.lang.Object implements BlockChangeRecord
Constructor and Description |
---|
BlockChangeRecord1_8(byte sectionX,
short y,
byte sectionZ,
int blockId) |
BlockChangeRecord1_8(int sectionX,
int y,
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_8(byte sectionX, short y, byte sectionZ, int blockId)
public BlockChangeRecord1_8(int sectionX, int y, int sectionZ, int blockId)
public byte getSectionX()
BlockChangeRecord
getSectionX
in interface BlockChangeRecord
public byte getSectionY()
BlockChangeRecord
getSectionY
in interface BlockChangeRecord
public short getY(int chunkSectionY)
BlockChangeRecord
getY
in interface BlockChangeRecord
chunkSectionY
- chunk sectionpublic byte getSectionZ()
BlockChangeRecord
getSectionZ
in interface BlockChangeRecord
public int getBlockId()
getBlockId
in interface BlockChangeRecord
public void setBlockId(int blockId)
setBlockId
in interface BlockChangeRecord