net.minecraft.world.gen.sampler

public class SamplingContext

net.minecraft.world.level.levelgen.densityfunction.SamplerContext
net.minecraft.world.level.levelgen.densityfunction.SamplerContext
net.minecraft.class_1_1521
net.minecraft.world.gen.sampler.SamplingContext

Field summary

Modifier and TypeField
public static final SamplingContext
EMPTY_UNCACHED
EMPTY_UNCACHED
field_1_10298
EMPTY
private static final int
CACHE_SIZE_STEP
CACHE_SIZE_STEP
field_1_10297
CACHE_ENTRY_COUNT_DIVISOR
private final ContextParameterMap
userFields
userFields
field_1_10301
params
private final SampleBufferProvider
bufferArena
bufferArena
field_1_10299
pool
private SamplingContext$CacheEntry[]
cacheCells
cacheCells
field_1_10300
cache

Constructor summary

ModifierConstructor
private (ContextParameterMap params, SampleBufferProvider pool, boolean cached)

Method summary

Modifier and TypeMethod
public static SamplingContext$Builder
builder()
builder()
method_1_10149()
builder()
public <T> T
getField(ContextKey<T> key)
getField(ContextKey<T> key)
method_1_10151(class_169<T> arg0)
getNullable(ContextParameter<T> param)
public <T> T
getFieldOrDefault(ContextKey<? extends T> key, T defaultValue)
getFieldOrDefault(ContextKey<? extends T> key, T defaultValue)
method_1_10152(class_169<? extends T> arg0, T arg1)
get(ContextParameter<? extends T> param, T fallback)
public PooledSampleBuffer
acquireBuffer(DensityVolume volume)
acquireBuffer(DensityVolume volume)
method_1_10148(class_1_1441 arg0)
allocateBufferFor(SamplingRegion region)
private SamplingContext$CacheEntry
getCacheCell(int cacheId)
getCacheCell(int cacheId)
method_1_10150(int arg0)
getOrCreateCacheEntry(int id)
void
sampleVolumeCached(int cacheId, DensitySampler input, DensityBuffer outputBuffer, DensityVolume volume)
sampleVolumeCached(int cacheId, DensitySampler input, DensityBuffer outputBuffer, DensityVolume volume)
method_1_10154(int arg0, class_1_1519 arg1, class_1_1516 arg2, class_1_1441 arg3)
fillCached(int id, Sampler input, SampleBuffer output, SamplingRegion region)
float
sampleValueCached(int cacheId, DensitySampler input, int blockX, int blockY, int blockZ)
sampleValueCached(int cacheId, DensitySampler input, int blockX, int blockY, int blockZ)
method_1_10153(int arg0, class_1_1519 arg1, int arg2, int arg3, int arg4)
sampleCached(int id, Sampler input, int x, int y, int z)