public abstract class StructureSim
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Random |
random |
protected long |
seed |
| Constructor and Description |
|---|
StructureSim(long seed) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerate(int chunkX,
int chunkZ) |
protected abstract boolean |
canSpawnStructureAtCoords(int chunkX,
int chunkZ,
java.util.function.BiFunction<java.lang.Integer,java.lang.Integer,net.minecraft.world.biome.Biome> biomeFunc) |
void |
generatePositions(int startChunkX,
int startChunkZ,
java.util.function.BiFunction<java.lang.Integer,java.lang.Integer,net.minecraft.world.biome.Biome> biomeFunc) |
int |
getRange() |
protected java.util.Random |
setWorldSeed(int seedX,
int seedY,
int seedZ) |
public void generatePositions(int startChunkX,
int startChunkZ,
java.util.function.BiFunction<java.lang.Integer,java.lang.Integer,net.minecraft.world.biome.Biome> biomeFunc)
public boolean canGenerate(int chunkX,
int chunkZ)
public int getRange()
protected abstract boolean canSpawnStructureAtCoords(int chunkX,
int chunkZ,
java.util.function.BiFunction<java.lang.Integer,java.lang.Integer,net.minecraft.world.biome.Biome> biomeFunc)
protected java.util.Random setWorldSeed(int seedX,
int seedY,
int seedZ)