Class MaterialRuleContext
java.lang.Object
net.minecraft.world.level.levelgen.material.MaterialRuleContext
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate intprivate final WorldGenerationContextprivate final DensitySamplerSetprivate final DensityVolumeprivate static final intprivate longprivate longprivate longprivate longprivate intprivate final Map<ResourceKey<NormalNoise>, DoubleSupplier> private final Map<ResourceKey<NormalNoise>, DoubleSupplier> private final BlockPos.MutableBlockPosprivate @Nullable DensityBufferprivate final DensityVolumeprivate final RandomStateprivate intprivate intprivate intprivate intprivate intprivate doubleprivate final MaterialSystemprivate int -
Constructor Summary
ConstructorsConstructorDescriptionMaterialRuleContext(MaterialSystem system, RandomState randomState, DensityVolume expectedVolume, DensitySamplerSet densitySamplers, Function<BlockPos, Holder<Biome>> biomeGetter, WorldGenerationContext context, @Nullable Set<Holder<Biome>> possibleBiomes) -
Method Summary
Modifier and TypeMethodDescriptionblockPos()intblockX()intblockY()intblockZ()private DoubleSuppliercreateNoiseSampler2d(ResourceKey<NormalNoise> noiseId) private DoubleSuppliercreateNoiseSampler3d(ResourceKey<NormalNoise> noiseId) getBand(int x, int y, int z) getBiome()getDensitiesInChunk(DensityFunction function, boolean prefill) intgetNoiseSampler(ResourceKey<NormalNoise> noiseId, boolean is3d) intdoubleintresolveAnchorY(VerticalAnchor anchor) intintintintint(package private) voidupdateXZ(int blockX, int blockZ, int surfaceGradientX, int surfaceGradientZ) (package private) voidupdateY(int stoneDepthAbove, int stoneDepthBelow, int waterHeight, int blockY) int
-
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:
-
system
-
randomState
-
expectedVolume
-
densitySamplers
-
biomeGetter
-
context
-
possibleBiomes
-
preliminarySurfaceVolume
-
preliminarySurfaceBuffer
-
noiseSamplers2d
-
noiseSamplers3d
-
lastUpdateXZ
private long lastUpdateXZ -
blockX
private int blockX -
blockZ
private int blockZ -
surfaceGradientX
private int surfaceGradientX -
surfaceGradientZ
private int surfaceGradientZ -
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
-
MaterialRuleContext
MaterialRuleContext(MaterialSystem system, RandomState randomState, DensityVolume expectedVolume, DensitySamplerSet densitySamplers, Function<BlockPos, Holder<Biome>> biomeGetter, WorldGenerationContext context, @Nullable Set<Holder<Biome>> possibleBiomes)
-
-
Method Details
-
updateXZ
void updateXZ(int blockX, int blockZ, int surfaceGradientX, int surfaceGradientZ) -
updateY
void updateY(int stoneDepthAbove, int stoneDepthBelow, int waterHeight, int blockY) -
getSurfaceSecondary
public double getSurfaceSecondary() -
getBiome
-
getSeaLevel
public int getSeaLevel() -
getMinSurfaceLevel
public int getMinSurfaceLevel() -
getNoiseSampler
-
createNoiseSampler2d
-
createNoiseSampler3d
-
getOrCreateRandomFactory
-
getDensitiesInChunk
-
possibleBiomes
-
stoneDepthAbove
public int stoneDepthAbove() -
stoneDepthBelow
public int stoneDepthBelow() -
surfaceDepth
public int surfaceDepth() -
waterHeight
public int waterHeight() -
blockX
public int blockX() -
blockY
public int blockY() -
blockZ
public int blockZ() -
blockPos
-
surfaceGradientX
public int surfaceGradientX() -
surfaceGradientZ
public int surfaceGradientZ() -
resolveAnchorY
-
getBand
-