Class SurfaceRules.Context
java.lang.Object
net.minecraft.world.level.levelgen.SurfaceRules.Context
- Enclosing class:
SurfaceRules
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classprivate static final classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SurfaceRules.Conditionprivate intprivate intprivate intprivate final ChunkAccessprivate final WorldGenerationContextprivate final SurfaceRules.Conditionprivate static final intprivate longprivate longprivate longprivate longprivate longprivate intprivate final NoiseChunkprivate final Map<ResourceKey<NormalNoise.NoiseParameters>, DoubleSupplier> private final Map<ResourceKey<NormalNoise.NoiseParameters>, DoubleSupplier> private final BlockPos.MutableBlockPosprivate final int[]private final RandomStateprivate final SurfaceRules.Conditionprivate intprivate intprivate static final intprivate static final intprivate static final intprivate intprivate doubleprivate final SurfaceSystemprivate final SurfaceRules.Conditionprivate int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContext(SurfaceSystem system, RandomState randomState, ChunkAccess chunk, NoiseChunk noiseChunk, Function<BlockPos, Holder<Biome>> biomeGetter, WorldGenerationContext context, @Nullable Set<Holder<Biome>> possibleBiomes) -
Method Summary
Modifier and TypeMethodDescriptionprivate static intblockCoordToSurfaceCell(int blockCoord) private DoubleSupplierprivate DoubleSuppliergetBiome()protected intprotected DoubleSuppliergetNoiseSampler(ResourceKey<NormalNoise.NoiseParameters> noiseId, boolean is3d) intprotected doubleprivate static intsurfaceCellToBlockCoord(int cellCoord) protected voidupdateXZ(int blockX, int blockZ) protected voidupdateY(int stoneDepthAbove, int stoneDepthBelow, int waterHeight, int blockY)
-
Field Details
-
HOW_FAR_BELOW_PRELIMINARY_SURFACE_LEVEL_TO_BUILD_SURFACE
private static final int HOW_FAR_BELOW_PRELIMINARY_SURFACE_LEVEL_TO_BUILD_SURFACE- See Also:
-
SURFACE_CELL_BITS
private static final int SURFACE_CELL_BITS- See Also:
-
SURFACE_CELL_SIZE
private static final int SURFACE_CELL_SIZE- See Also:
-
SURFACE_CELL_MASK
private static final int SURFACE_CELL_MASK- See Also:
-
system
-
temperature
-
steep
-
hole
-
abovePreliminarySurface
-
randomState
-
chunk
-
noiseChunk
-
biomeGetter
-
context
-
possibleBiomes
-
lastPreliminarySurfaceCellOrigin
private long lastPreliminarySurfaceCellOrigin -
preliminarySurfaceCache
private final int[] preliminarySurfaceCache -
noiseSamplers2d
-
noiseSamplers3d
-
lastUpdateXZ
private long lastUpdateXZ -
blockX
private int blockX -
blockZ
private int blockZ -
surfaceDepth
private int surfaceDepth -
lastSurfaceDepth2Update
private long lastSurfaceDepth2Update -
surfaceSecondary
private double surfaceSecondary -
lastMinSurfaceLevelUpdate
private long lastMinSurfaceLevelUpdate -
minSurfaceLevel
private int minSurfaceLevel -
lastUpdateY
private long lastUpdateY -
pos
-
biome
-
blockY
private int blockY -
waterHeight
private int waterHeight -
stoneDepthBelow
private int stoneDepthBelow -
stoneDepthAbove
private int stoneDepthAbove
-
-
Constructor Details
-
Context
protected Context(SurfaceSystem system, RandomState randomState, ChunkAccess chunk, NoiseChunk noiseChunk, Function<BlockPos, Holder<Biome>> biomeGetter, WorldGenerationContext context, @Nullable Set<Holder<Biome>> possibleBiomes)
-
-
Method Details
-
updateXZ
protected void updateXZ(int blockX, int blockZ) -
updateY
protected void updateY(int stoneDepthAbove, int stoneDepthBelow, int waterHeight, int blockY) -
getSurfaceSecondary
protected double getSurfaceSecondary() -
getBiome
-
getSeaLevel
public int getSeaLevel() -
blockCoordToSurfaceCell
private static int blockCoordToSurfaceCell(int blockCoord) -
surfaceCellToBlockCoord
private static int surfaceCellToBlockCoord(int cellCoord) -
getMinSurfaceLevel
protected int getMinSurfaceLevel() -
getNoiseSampler
protected DoubleSupplier getNoiseSampler(ResourceKey<NormalNoise.NoiseParameters> noiseId, boolean is3d) -
createNoiseSampler2d
-
createNoiseSampler3d
-