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