Lots O Stuff

This commit is contained in:
Bud Gidiere
2020-11-20 16:43:24 -06:00
parent d125ee3d87
commit 75a04f7d8f
33 changed files with 62 additions and 1115 deletions

View File

@@ -1,11 +1,10 @@
package com.dfsek.terra.procgen;
import com.dfsek.terra.util.GlueList;
import it.unimi.dsi.util.XoRoShiRo128PlusPlusRandom;
import org.bukkit.util.Vector;
import org.polydev.gaea.math.MathUtil;
import org.polydev.gaea.util.FastRandom;
import org.polydev.gaea.util.GlueList;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
@@ -55,7 +54,7 @@ public class GridSpawn {
* @return Vector representing spawnpoint
*/
public Vector getChunkSpawn(int structureChunkX, int structureChunkZ, long seed) {
Random r = new XoRoShiRo128PlusPlusRandom(MathUtil.getCarverChunkSeed(structureChunkX, structureChunkZ, seed));
Random r = new FastRandom(MathUtil.getCarverChunkSeed(structureChunkX, structureChunkZ, seed));
int offsetX = r.nextInt(width);
int offsetZ = r.nextInt(width);
int sx = structureChunkX * (width + 2 * separation) + offsetX;

View File

@@ -1,6 +1,6 @@
package com.dfsek.terra.procgen.math;
import org.apache.commons.math3.util.FastMath;
import net.jafama.FastMath;
/**
* oh yeah

View File

@@ -1,7 +1,7 @@
package com.dfsek.terra.procgen.pixel;
import com.dfsek.terra.procgen.math.Vector2;
import org.apache.commons.math3.util.FastMath;
import net.jafama.FastMath;
import java.util.HashSet;
import java.util.Set;

View File

@@ -1,9 +1,8 @@
package com.dfsek.terra.procgen.voxel;
import com.dfsek.terra.util.GlueList;
import org.bukkit.util.Vector;
import org.polydev.gaea.util.GlueList;
import java.util.ArrayList;
import java.util.List;
public abstract class VoxelGeometry {