net.minecraft.world.gen.surfacebuilder

public final class MaterialRules$MaterialRuleContext

net.minecraft.world.level.levelgen.SurfaceRules$Context
net.minecraft.class_6686$class_6694
net.minecraft.world.gen.surfacebuilder.MaterialRules$MaterialRuleContext

Field summary

Modifier and TypeField
private static final int
HOW_FAR_BELOW_PRELIMINARY_SURFACE_LEVEL_TO_BUILD_SURFACE
field_36274
field_36274
private static final int
SURFACE_CELL_BITS
field_36275
BLOCK_CHUNK_COORD_SHIFT
private static final int
SURFACE_CELL_SIZE
field_36276
BLOCK_CHUNK_SCALE_FACTOR
private static final int
SURFACE_CELL_MASK
field_36277
CHUNK_LOCAL_MASK
private final SurfaceBuilder
system
field_35233
surfaceBuilder
private final MaterialRules$BooleanSupplier
temperature
field_35234
biomeTemperaturePredicate
private final MaterialRules$BooleanSupplier
steep
field_35235
steepSlopePredicate
private final MaterialRules$BooleanSupplier
hole
field_35236
negativeRunDepthPredicate
private final MaterialRules$BooleanSupplier
abovePreliminarySurface
field_35604
surfacePredicate
private final NoiseConfig
randomState
field_37703
noiseConfig
private final Chunk
chunk
field_35605
chunk
private final ChunkNoiseSampler
noiseChunk
field_35676
chunkNoiseSampler
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 long
lastPreliminarySurfaceCellOrigin
field_36278
packedChunkPos
private final int[]
preliminarySurfaceCache
field_36279
estimatedSurfaceHeights
private final Map<RegistryKey<DoublePerlinNoiseSampler$NoiseParameters>, DoubleSupplier>
noiseSamplers2d
field_1_6330
cache2d
private final Map<RegistryKey<DoublePerlinNoiseSampler$NoiseParameters>, 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
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
protected (SurfaceBuilder surfaceBuilder, NoiseConfig noiseConfig, Chunk chunk, ChunkNoiseSampler chunkNoiseSampler, Function<BlockPos, RegistryEntry<Biome>> posToBiome, HeightContext heightContext, Set<RegistryEntry<Biome>> includedBiomes)

Method summary

Modifier and TypeMethod
protected void
updateXZ(int blockX, int blockZ)
method_39072(int arg0, int arg1)
initHorizontalContext(int blockX, int blockZ)
protected 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)
protected double
getSurfaceSecondary()
method_39550()
getSecondaryDepth()
protected RegistryEntry<Biome>
getBiome()
method_1_5130()
getCurrentBiome()
public int
getSeaLevel()
method_61804()
getSeaLevel()
private static int
blockCoordToSurfaceCell(int blockCoord)
method_39903(int arg0)
blockToChunkCoord(int blockCoord)
private static int
surfaceCellToBlockCoord(int cellCoord)
method_39904(int arg0)
chunkToBlockCoord(int chunkCoord)
protected int
getMinSurfaceLevel()
method_39551()
estimateSurfaceHeight()
protected DoubleSupplier
getNoiseSampler(ResourceKey<NormalNoise$NoiseParameters> noiseId, boolean is3d)
method_1_5441(class_5321<class_5216$class_5487> arg0, boolean arg1)
getSupplier(RegistryKey<DoublePerlinNoiseSampler$NoiseParameters> noiseParams, boolean is3d)
private DoubleSupplier
createNoiseSampler2d(ResourceKey<NormalNoise$NoiseParameters> noiseId)
method_1_5439(class_5321<class_5216$class_5487> arg0)
computeSupplier2d(RegistryKey<DoublePerlinNoiseSampler$NoiseParameters> noise)
private DoubleSupplier
createNoiseSampler3d(ResourceKey<NormalNoise$NoiseParameters> noiseId)
method_1_5440(class_5321<class_5216$class_5487> arg0)
computeSupplier3d(RegistryKey<DoublePerlinNoiseSampler$NoiseParameters> noise)