Class BlockChangeRecord1_16_2
java.lang.Object
com.viaversion.viaversion.api.minecraft.BlockChangeRecord1_16_2
- All Implemented Interfaces:
BlockChangeRecord
-
Constructor Summary
ConstructorsConstructorDescriptionBlockChangeRecord1_16_2(byte sectionX, byte sectionY, byte sectionZ, int blockId) BlockChangeRecord1_16_2(int sectionX, int sectionY, int sectionZ, int blockId) -
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.shortgetY(int chunkSectionY) Returns the absolute y coordinate based on the given chunk section y.voidsetBlockId(int blockId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.viaversion.viaversion.api.minecraft.BlockChangeRecord
getY
-
Constructor Details
-
BlockChangeRecord1_16_2
public BlockChangeRecord1_16_2(byte sectionX, byte sectionY, byte sectionZ, int blockId) -
BlockChangeRecord1_16_2
public BlockChangeRecord1_16_2(int sectionX, int sectionY, int sectionZ, int blockId)
-
-
Method Details
-
getSectionX
public byte getSectionX()Description copied from interface:BlockChangeRecordReturns the relative x coordinate within the chunk section.- Specified by:
getSectionXin interfaceBlockChangeRecord- Returns:
- relative x coordinate within the chunk section
-
getSectionY
public byte getSectionY()Description copied from interface:BlockChangeRecordReturns the relative y coordinate within the chunk section.- Specified by:
getSectionYin interfaceBlockChangeRecord- Returns:
- relative y coordinate within the chunk section
-
getSectionZ
public byte getSectionZ()Description copied from interface:BlockChangeRecordReturns the relative z coordinate within the chunk section.- Specified by:
getSectionZin interfaceBlockChangeRecord- Returns:
- relative z coordinate within the chunk section
-
getY
public short getY(int chunkSectionY) Description copied from interface:BlockChangeRecordReturns the absolute y coordinate based on the given chunk section y.- Specified by:
getYin interfaceBlockChangeRecord- Parameters:
chunkSectionY- chunk section- Returns:
- absolute y coordinate
-
getBlockId
public int getBlockId()- Specified by:
getBlockIdin interfaceBlockChangeRecord
-
setBlockId
public void setBlockId(int blockId) - Specified by:
setBlockIdin interfaceBlockChangeRecord
-