Class SamplerContext
java.lang.Object
net.minecraft.world.level.levelgen.densityfunction.SamplerContext
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DensityBufferArenaprivate static final intprivate SamplerContext.CacheCell @Nullable []static final SamplerContextprivate final ContextMap -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSamplerContext(ContextMap userFields, DensityBufferArena bufferArena, boolean enableCaches) -
Method Summary
Modifier and TypeMethodDescriptionacquireBuffer(DensityVolume volume) static SamplerContext.Builderbuilder()private @Nullable SamplerContext.CacheCellgetCacheCell(int cacheId) <T> @Nullable TgetField(ContextKey<T> key) <T> TgetFieldOrDefault(ContextKey<? extends T> key, T defaultValue) (package private) floatsampleValueCached(int cacheId, DensitySampler input, int blockX, int blockY, int blockZ) (package private) voidsampleVolumeCached(int cacheId, DensitySampler input, DensityBuffer outputBuffer, DensityVolume volume)
-
Field Details
-
EMPTY_UNCACHED
-
CACHE_SIZE_STEP
private static final int CACHE_SIZE_STEP- See Also:
-
userFields
-
bufferArena
-
cacheCells
-
-
Constructor Details
-
SamplerContext
-
-
Method Details
-
builder
-
getField
-
getFieldOrDefault
-
acquireBuffer
-
getCacheCell
-
sampleVolumeCached
void sampleVolumeCached(int cacheId, DensitySampler input, DensityBuffer outputBuffer, DensityVolume volume) -
sampleValueCached
-