Class SplineFunction.Sampler
java.lang.Object
net.minecraft.world.level.levelgen.densityfunction.op.SplineFunction.Sampler
- All Implemented Interfaces:
DensitySampler
- Enclosing class:
SplineFunction
-
Nested Class Summary
Nested classes/interfaces inherited from interface DensitySampler
DensitySampler.Bound -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final BoundedFloatFunction<SplineFunction.SplineInput> -
Constructor Summary
ConstructorsConstructorDescriptionSampler(DensityFunction.CompileContext context, CubicSpline<SplineFunction.Coordinate> spline) -
Method Summary
Modifier and TypeMethodDescriptionfloatsampleValue(SamplerContext context, int blockX, int blockY, int blockZ) voidsampleVolume(SamplerContext context, DensityBuffer outputBuffer, DensityVolume volume) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DensitySampler
bind
-
Field Details
-
sampler
-
coordinateCount
private final int coordinateCount
-
-
Constructor Details
-
Sampler
public Sampler(DensityFunction.CompileContext context, CubicSpline<SplineFunction.Coordinate> spline)
-
-
Method Details
-
sampleVolume
- Specified by:
sampleVolumein interfaceDensitySampler
-
sampleValue
- Specified by:
sampleValuein interfaceDensitySampler
-