public class StructureWeightSampler
extends java.lang.Object
| Constructor and Description |
|---|
StructureWeightSampler(java.util.List<net.minecraft.world.gen.structure.StructureComponent> structureComponents) |
| Modifier and Type | Method and Description |
|---|---|
static int |
cacheStructures(ModernBetaChunkGenerator chunkGenerator,
net.minecraft.world.gen.structure.StructureStart start,
java.util.function.Predicate<net.minecraft.world.gen.structure.StructureComponent> excluder) |
static int |
getStructureHeight(ChunkSource chunkSource,
net.minecraft.world.gen.structure.StructureBoundingBox boundingBox) |
double |
sample(ChunkSource chunkSource,
net.minecraft.util.math.BlockPos blockPos) |
public StructureWeightSampler(java.util.List<net.minecraft.world.gen.structure.StructureComponent> structureComponents)
public double sample(ChunkSource chunkSource, net.minecraft.util.math.BlockPos blockPos)
public static int getStructureHeight(ChunkSource chunkSource, net.minecraft.world.gen.structure.StructureBoundingBox boundingBox)
public static int cacheStructures(ModernBetaChunkGenerator chunkGenerator, net.minecraft.world.gen.structure.StructureStart start, java.util.function.Predicate<net.minecraft.world.gen.structure.StructureComponent> excluder)