mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-21 03:33:23 +00:00
29 lines
325 B
Java
29 lines
325 B
Java
package com.volmit.iris.util;
|
|
|
|
import lombok.Data;
|
|
|
|
@Data
|
|
public class BlockPosition
|
|
{
|
|
private int x;
|
|
private int y;
|
|
private int z;
|
|
|
|
public BlockPosition(int x, int y, int z)
|
|
{
|
|
this.x = x;
|
|
this.y = y;
|
|
this.z = z;
|
|
}
|
|
|
|
public int getChunkX()
|
|
{
|
|
return x >> 4;
|
|
}
|
|
|
|
public int getChunkZ()
|
|
{
|
|
return z >> 4;
|
|
}
|
|
}
|