net.minecraft.world.gen

public class StructureWeightSampler

implements Sampler

net.minecraft.world.level.levelgen.Beardifier
net.minecraft.world.level.levelgen.Beardifier
net.minecraft.class_5817
net.minecraft.world.gen.StructureWeightSampler

Field summary

Modifier and TypeField
public static final Interval
RANGE
RANGE
field_1_8111
RANGE
public static final ContextParameter<StructureWeightSampler>
CONTEXT_KEY
CONTEXT_KEY
field_1_10160
BEARDIFIER
public static final int
BEARD_KERNEL_RADIUS
BEARD_KERNEL_RADIUS
field_31461
INDEX_OFFSET
private static final int
BEARD_KERNEL_SIZE
BEARD_KERNEL_SIZE
field_31462
EDGE_LENGTH
private static final float[]
BEARD_KERNEL
BEARD_KERNEL
field_28741
STRUCTURE_WEIGHT_TABLE
private static final float
MAX_BURY_DISTANCE
MAX_BURY_DISTANCE
field_1_9058
field_1_9058
public static final StructureWeightSampler
EMPTY
EMPTY
field_61464
EMPTY
private final List<StructureWeightSampler$Piece>
pieces
pieces
field_61465
pieces
private final List<JigsawJunction>
junctions
junctions
field_61466
junctions
private final BlockBox
affectedBox
affectedBox
field_61467
boundingBox

Constructor summary

ModifierConstructor
public (List<StructureWeightSampler$Piece> pieces, List<JigsawJunction> junctions, BlockBox boundingBox)

Method summary

Modifier and TypeMethod
public static StructureWeightSampler
forStructuresInChunk(StructureManager structureManager, ChunkPos chunkPos)
forStructuresInChunk(StructureManager structureManager, ChunkPos chunkPos)
method_42695(class_5138 arg0, class_1923 arg1)
createStructureWeightSampler(StructureAccessor structureAccessor, ChunkPos chunkPos)
private static BlockBox
includeBoundingBox(BoundingBox encompassingBox, BoundingBox newBox)
includeBoundingBox(BoundingBox encompassingBox, BoundingBox newBox)
method_72681(class_3341 arg0, class_3341 arg1)
union(BlockBox box1, BlockBox box2)
public void
sampleVolume(SamplerContext context, DensityBuffer outputBuffer, DensityVolume volume)
sampleVolume(SamplerContext context, DensityBuffer outputBuffer, DensityVolume volume)
method_40470(class_1_1521 arg0, class_1_1516 arg1, class_1_1441 arg2)
fill(SamplingContext arg0, SampleBuffer arg1, SamplingRegion arg2)
public float
sampleValue(SamplerContext context, int blockX, int blockY, int blockZ)
sampleValue(SamplerContext context, int blockX, int blockY, int blockZ)
method_1_10143(class_1_1521 arg0, int arg1, int arg2, int arg3)
sample(SamplingContext arg0, int arg1, int arg2, int arg3)
private float
sampleValueUnchecked(int blockX, int blockY, int blockZ)
sampleValueUnchecked(int blockX, int blockY, int blockZ)
method_1_9944(int arg0, int arg1, int arg2)
sample(int x, int y, int z)
private static float
getBuryContribution(float dx, float dy, float dz)
getBuryContribution(float dx, float dy, float dz)
method_33832(float arg0, float arg1, float arg2)
getMagnitudeWeight(float dx, float dy, float dz)
private static float
getBeardContribution(int dx, int dy, int dz, int yToGround)
getBeardContribution(int dx, int dy, int dz, int yToGround)
method_33641(int arg0, int arg1, int arg2, int arg3)
getStructureWeight(int x, int y, int z, int yy)
private static boolean
isInKernelRange(int xi)
isInKernelRange(int xi)
method_42692(int arg0)
indexInBounds(int i)
private static double
computeBeardContribution(int dx, int dy, int dz)
computeBeardContribution(int dx, int dy, int dz)
method_33642(int arg0, int arg1, int arg2)
calculateStructureWeight(int x, int y, int z)
private static double
computeBeardContribution(int dx, double dy, int dz)
computeBeardContribution(int dx, double dy, int dz)
method_42693(int arg0, double arg1, int arg2)
structureWeight(int x, double y, int z)