Add some more utility functions

This commit is contained in:
zontreck 2024-04-07 19:50:32 -07:00
parent ed9d9bd249
commit a4da2bb52b
10 changed files with 164 additions and 47 deletions

View file

@ -5,7 +5,7 @@ import net.minecraft.server.level.ServerLevel;
public class ChunkPos {
public Points points;
public Vector2d centerPoints;
public Vector2f centerPoints;
public String dim;
public ChunkPos(Vector3d point1, Vector3d point2, ServerLevel lvl)
@ -17,7 +17,7 @@ public class ChunkPos {
public ChunkPos(CompoundTag tag)
{
points = new Points(tag.getCompound("points"));
centerPoints = Vector2d.deserialize(tag.getCompound("center"));
centerPoints = Vector2f.deserialize(tag.getCompound("center"));
}
public boolean isWithin(Vector3d point)