ViaVersion/api/src/main/java/us/myles/ViaVersion/api/minecraft/BlockChangeRecord.java

38 lines
766 B
Java
Raw Normal View History

package us.myles.ViaVersion.api.minecraft;
2020-07-08 21:01:18 +02:00
public interface BlockChangeRecord {
2020-02-09 13:06:23 +01:00
2020-07-08 21:01:18 +02:00
/**
* @return relative x coordinate within the chunk section
*/
byte getSectionX();
2020-02-09 13:06:23 +01:00
2020-07-08 21:01:18 +02:00
/**
* @return relative y coordinate within the chunk section
*/
byte getSectionY();
2020-02-09 13:06:23 +01:00
2020-07-08 21:01:18 +02:00
/**
* @return relative z coordinate within the chunk section
*/
byte getSectionZ();
2020-02-09 13:06:23 +01:00
2020-07-08 21:01:18 +02:00
/**
* @param chunkSectionY chunk section
* @return absolute y coordinate
*/
short getY(int chunkSectionY);
/**
* @return absolute y coordinate
* @deprecated 1.16+ stores the relative y coordinate
*/
@Deprecated
default short getY() {
return getY(-1);
2020-02-09 13:06:23 +01:00
}
2020-07-08 21:01:18 +02:00
int getBlockId();
void setBlockId(int blockId);
}