net.minecraft.world.gen.surfacebuilder

public final class MaterialRuleContext

net.minecraft.world.level.levelgen.material.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
HOW_FAR_BELOW_PRELIMINARY_SURFACE_LEVEL_TO_BUILD_SURFACE
field_36274
field_36274
private final SurfaceBuilder
system
system
field_35233
surfaceBuilder
private final NoiseConfig
randomState
randomState
field_37703
noiseConfig
private final SamplingRegion
expectedVolume
expectedVolume
field_1_10284
region
private final ContextualSamplerProvider
densitySamplers
densitySamplers
field_1_10283
contextualSamplerProvider
private final Function<BlockPos, RegistryEntry<Biome>>
biomeGetter
biomeGetter
field_35606
posToBiome
private final HeightContext
context
context
field_35241
heightContext
private final Set<RegistryEntry<Biome>>
possibleBiomes
possibleBiomes
field_1_5963
includedBiomes
private final SamplingRegion
preliminarySurfaceVolume
preliminarySurfaceVolume
field_1_10286
flatRegion
private SampleBuffer
preliminarySurfaceBuffer
preliminarySurfaceBuffer
field_1_10285
cachedSurfaceLevelSamples
private final Map<RegistryKey<FractalNoiseParameters>, DoubleSupplier>
noiseSamplers2d
noiseSamplers2d
field_1_6330
cache2d
private final Map<RegistryKey<FractalNoiseParameters>, DoubleSupplier>
noiseSamplers3d
noiseSamplers3d
field_1_6331
cache3d
private long
lastUpdateXZ
lastUpdateXZ
field_35608
uniqueHorizontalPosValue
private int
blockX
blockX
field_35609
blockX
private int
blockZ
blockZ
field_35610
blockZ
private int
surfaceGradientX
surfaceGradientX
field_1_10287
steepnessX
private int
surfaceGradientZ
surfaceGradientZ
field_1_10288
steepnessZ
private int
surfaceDepth
surfaceDepth
field_35611
runDepth
private long
lastSurfaceDepth2Update
lastSurfaceDepth2Update
field_35677
lastQueriesUniqueHorizontalPosValueForSecondaryDepth
private double
surfaceSecondary
surfaceSecondary
field_35678
secondaryDepth
private long
lastMinSurfaceLevelUpdate
lastMinSurfaceLevelUpdate
field_35679
lastQueriesUniqueHorizontalPosValueForEstimatedSurfaceHeight
private int
minSurfaceLevel
minSurfaceLevel
field_35616
surfaceMinY
private long
lastUpdateY
lastUpdateY
field_35612
uniquePosValue
private final BlockPos$Mutable
pos
pos
field_35613
pos
private RegistryEntry<Biome>
biome
biome
field_1_5962
currentBiome
private int
blockY
blockY
field_35617
blockY
private int
waterHeight
waterHeight
field_35618
fluidHeight
private int
stoneDepthBelow
stoneDepthBelow
field_35619
stoneDepthBelow
private int
stoneDepthAbove
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)
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)
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()
getSurfaceSecondary()
method_39550()
getSecondaryDepth()
public RegistryEntry<Biome>
getBiome()
getBiome()
method_1_5130()
getCurrentBiome()
public int
getSeaLevel()
getSeaLevel()
method_61804()
getSeaLevel()
public int
getMinSurfaceLevel()
getMinSurfaceLevel()
method_39551()
estimateSurfaceHeight()
public DoubleSupplier
getNoiseSampler(ResourceKey<NormalNoise> noiseId, boolean is3d)
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)
createNoiseSampler2d(ResourceKey<NormalNoise> noiseId)
method_1_5439(class_5321<class_5216> arg0)
computeSupplier2d(RegistryKey<FractalNoiseParameters> noise)
private DoubleSupplier
createNoiseSampler3d(ResourceKey<NormalNoise> noiseId)
createNoiseSampler3d(ResourceKey<NormalNoise> noiseId)
method_1_5440(class_5321<class_5216> arg0)
computeSupplier3d(RegistryKey<FractalNoiseParameters> noise)
public RandomSplitter
getOrCreateRandomFactory(Identifier name)
getOrCreateRandomFactory(Identifier name)
method_1_10108(class_2960 arg0)
getOrCreateRandomSplitter(Identifier id)
public MaterialRules$DensityProvider
getDensitiesInChunk(DensityFunction function, boolean prefill)
getDensitiesInChunk(DensityFunction function, boolean prefill)
method_1_10107(class_6910 arg0, boolean arg1)
getDensityProvider(DensityFunction func, boolean eager)
public Set<RegistryEntry<Biome>>
possibleBiomes()
possibleBiomes()
method_1_10111()
getIncludedBiomes()
public int
stoneDepthAbove()
stoneDepthAbove()
method_1_10113()
getStoneDepthAbove()
public int
stoneDepthBelow()
stoneDepthBelow()
method_1_10114()
getStoneDepthBelow()
public int
surfaceDepth()
surfaceDepth()
method_1_10115()
getRunDepth()
public int
waterHeight()
waterHeight()
method_1_10118()
getFluidHeight()
public int
blockX()
blockX()
method_1_10103()
getBlockX()
public int
blockY()
blockY()
method_1_10104()
getBlockY()
public int
blockZ()
blockZ()
method_1_10105()
getBlockZ()
public BlockPos
blockPos()
blockPos()
method_1_10102()
getBlockPos()
public int
surfaceGradientX()
surfaceGradientX()
method_1_10116()
getSteepnessX()
public int
surfaceGradientZ()
surfaceGradientZ()
method_1_10117()
getSteepnessZ()
public int
resolveAnchorY(VerticalAnchor anchor)
resolveAnchorY(VerticalAnchor anchor)
method_1_10112(class_5843 arg0)
resolveY(YOffset yOffset)
public BlockState
getBand(int x, int y, int z)
getBand(int x, int y, int z)
method_1_10106(int arg0, int arg1, int arg2)
getTerracottaBlock(int x, int y, int z)