net.minecraft.world.gen.surfacebuilder

public final class MaterialRuleContext

net.minecraft.world.level.levelgen.material.MaterialRuleContext
net.minecraft.class_6694
net.minecraft.world.gen.surfacebuilder.MaterialRuleContext

Field summary

Modifier and TypeField
private static final int
HOW_FAR_BELOW_PRELIMINARY_SURFACE_LEVEL_TO_BUILD_SURFACE
field_36274
field_36274
private final SurfaceBuilder
system
field_35233
surfaceBuilder
private final NoiseConfig
randomState
field_37703
noiseConfig
private final SamplingRegion
expectedVolume
field_1_10284
region
private final ContextualSamplerProvider
densitySamplers
field_1_10283
contextualSamplerProvider
private final Function<BlockPos, RegistryEntry<Biome>>
biomeGetter
field_35606
posToBiome
private final HeightContext
context
field_35241
heightContext
private final Set<RegistryEntry<Biome>>
possibleBiomes
field_1_5963
includedBiomes
private final SamplingRegion
preliminarySurfaceVolume
field_1_10286
flatRegion
private SampleBuffer
preliminarySurfaceBuffer
field_1_10285
cachedSurfaceLevelSamples
private final Map<RegistryKey<FractalNoiseParameters>, DoubleSupplier>
noiseSamplers2d
field_1_6330
cache2d
private final Map<RegistryKey<FractalNoiseParameters>, DoubleSupplier>
noiseSamplers3d
field_1_6331
cache3d
private long
lastUpdateXZ
field_35608
uniqueHorizontalPosValue
private int
blockX
field_35609
blockX
private int
blockZ
field_35610
blockZ
private int
surfaceGradientX
field_1_10287
steepnessX
private int
surfaceGradientZ
field_1_10288
steepnessZ
private int
surfaceDepth
field_35611
runDepth
private long
lastSurfaceDepth2Update
field_35677
lastQueriesUniqueHorizontalPosValueForSecondaryDepth
private double
surfaceSecondary
field_35678
secondaryDepth
private long
lastMinSurfaceLevelUpdate
field_35679
lastQueriesUniqueHorizontalPosValueForEstimatedSurfaceHeight
private int
minSurfaceLevel
field_35616
surfaceMinY
private long
lastUpdateY
field_35612
uniquePosValue
private final BlockPos$Mutable
pos
field_35613
pos
private RegistryEntry<Biome>
biome
field_1_5962
currentBiome
private int
blockY
field_35617
blockY
private int
waterHeight
field_35618
fluidHeight
private int
stoneDepthBelow
field_35619
stoneDepthBelow
private int
stoneDepthAbove
field_35620
stoneDepthAbove

Constructor summary

ModifierConstructor
(SurfaceBuilder surfaceBuilder, NoiseConfig noiseConfig, SamplingRegion region, ContextualSamplerProvider contextualSamplerProvider, Function<BlockPos, RegistryEntry<Biome>> posToBiome, HeightContext heightContext, Set<RegistryEntry<Biome>> includedBiomes)

Method summary

Modifier and TypeMethod
void
updateXZ(int blockX, int blockZ, int surfaceGradientX, int surfaceGradientZ)
method_39072(int arg0, int arg1, int arg2, int arg3)
initHorizontalContext(int blockX, int blockZ, int steepnessX, int steepnessZ)
void
updateY(int stoneDepthAbove, int stoneDepthBelow, int waterHeight, int blockY)
method_39073(int arg0, int arg1, int arg2, int arg3)
initVerticalContext(int stoneDepthAbove, int stoneDepthBelow, int fluidHeight, int blockY)
public double
getSurfaceSecondary()
method_39550()
getSecondaryDepth()
public RegistryEntry<Biome>
getBiome()
method_1_5130()
getCurrentBiome()
public int
getSeaLevel()
method_61804()
getSeaLevel()
public int
getMinSurfaceLevel()
method_39551()
estimateSurfaceHeight()
public DoubleSupplier
getNoiseSampler(ResourceKey<NormalNoise> noiseId, boolean is3d)
method_1_5441(class_5321<class_5216> arg0, boolean arg1)
getSupplier(RegistryKey<FractalNoiseParameters> noiseParams, boolean is3d)
private DoubleSupplier
createNoiseSampler2d(ResourceKey<NormalNoise> noiseId)
method_1_5439(class_5321<class_5216> arg0)
computeSupplier2d(RegistryKey<FractalNoiseParameters> noise)
private DoubleSupplier
createNoiseSampler3d(ResourceKey<NormalNoise> noiseId)
method_1_5440(class_5321<class_5216> arg0)
computeSupplier3d(RegistryKey<FractalNoiseParameters> noise)
public RandomSplitter
getOrCreateRandomFactory(Identifier name)
method_1_10108(class_2960 arg0)
getOrCreateRandomSplitter(Identifier id)
public MaterialRules$DensityProvider
getDensitiesInChunk(DensityFunction function, boolean prefill)
method_1_10107(class_6910 arg0, boolean arg1)
getDensityProvider(DensityFunction func, boolean eager)
public Set<RegistryEntry<Biome>>
possibleBiomes()
method_1_10111()
getIncludedBiomes()
public int
stoneDepthAbove()
method_1_10113()
getStoneDepthAbove()
public int
stoneDepthBelow()
method_1_10114()
getStoneDepthBelow()
public int
surfaceDepth()
method_1_10115()
getRunDepth()
public int
waterHeight()
method_1_10118()
getFluidHeight()
public int
blockX()
method_1_10103()
getBlockX()
public int
blockY()
method_1_10104()
getBlockY()
public int
blockZ()
method_1_10105()
getBlockZ()
public BlockPos
blockPos()
method_1_10102()
getBlockPos()
public int
surfaceGradientX()
method_1_10116()
getSteepnessX()
public int
surfaceGradientZ()
method_1_10117()
getSteepnessZ()
public int
resolveAnchorY(VerticalAnchor anchor)
method_1_10112(class_5843 arg0)
resolveY(YOffset yOffset)
public BlockState
getBand(int x, int y, int z)
method_1_10106(int arg0, int arg1, int arg2)
getTerracottaBlock(int x, int y, int z)
private float
lambda$getDensitiesInChunk$1(DensitySampler$Bound arg0)
method_1_10110(class_1_1519$class_1_1520 arg0)
method_1_10110(Sampler$Contextual arg0)
private float
lambda$getDensitiesInChunk$0(DensitySampler$Bound arg0, DensityBuffer arg1)
method_1_10109(class_1_1519$class_1_1520 arg0, class_1_1516 arg1)
method_1_10109(Sampler$Contextual arg0, SampleBuffer arg1)