Class SurfaceRules
java.lang.Object
net.minecraft.world.level.levelgen.SurfaceRules
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum
(package private) static enum
(package private) static final class
(package private) static final record
(package private) static interface
static interface
protected static final class
(package private) static enum
(package private) static class
(package private) static class
(package private) static class
(package private) static final record
(package private) static final record
(package private) static final record
static interface
(package private) static final record
(package private) static final record
(package private) static final record
(package private) static enum
(package private) static final record
protected static interface
(package private) static enum
(package private) static final record
(package private) static final record
(package private) static final record
(package private) static final record
(package private) static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SurfaceRules.ConditionSource
static final SurfaceRules.ConditionSource
static final SurfaceRules.ConditionSource
static final SurfaceRules.ConditionSource
static final SurfaceRules.ConditionSource
static final SurfaceRules.ConditionSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SurfaceRules.ConditionSource
static SurfaceRules.RuleSource
static SurfaceRules.ConditionSource
hole()
static SurfaceRules.RuleSource
ifTrue
(SurfaceRules.ConditionSource ifTrue, SurfaceRules.RuleSource thenRun) private static SurfaceRules.BiomeConditionSource
isBiome
(List<ResourceKey<Biome>> biomes) static SurfaceRules.ConditionSource
isBiome
(ResourceKey<Biome>... biomes) static SurfaceRules.ConditionSource
noiseCondition
(ResourceKey<NormalNoise.NoiseParameters> noise, double minThreshold) static SurfaceRules.ConditionSource
noiseCondition
(ResourceKey<NormalNoise.NoiseParameters> noise, double minThreshold, double maxThreshold) static SurfaceRules.ConditionSource
not
(SurfaceRules.ConditionSource target) (package private) static <A> com.mojang.serialization.MapCodec
<? extends A> register
(Registry<com.mojang.serialization.MapCodec<? extends A>> registry, String name, KeyDispatchDataCodec<? extends A> codec) static SurfaceRules.RuleSource
sequence
(SurfaceRules.RuleSource... rules) static SurfaceRules.RuleSource
state
(BlockState resultState) static SurfaceRules.ConditionSource
steep()
static SurfaceRules.ConditionSource
stoneDepthCheck
(int offset, boolean addSurfaceDepth, int secondaryDepthRange, CaveSurface surfaceType) static SurfaceRules.ConditionSource
stoneDepthCheck
(int offset, boolean addSurfaceDepth, CaveSurface surfaceType) static SurfaceRules.ConditionSource
static SurfaceRules.ConditionSource
verticalGradient
(String randomName, VerticalAnchor trueAtAndBelow, VerticalAnchor falseAtAndAbove) static SurfaceRules.ConditionSource
waterBlockCheck
(int offset, int surfaceDepthMultiplier) static SurfaceRules.ConditionSource
waterStartCheck
(int offset, int surfaceDepthMultiplier) static SurfaceRules.ConditionSource
yBlockCheck
(VerticalAnchor anchor, int surfaceDepthMultiplier) static SurfaceRules.ConditionSource
yStartCheck
(VerticalAnchor anchor, int surfaceDepthMultiplier)
-
Field Details
-
ON_FLOOR
-
UNDER_FLOOR
-
DEEP_UNDER_FLOOR
-
VERY_DEEP_UNDER_FLOOR
-
ON_CEILING
-
UNDER_CEILING
-
-
Constructor Details
-
SurfaceRules
public SurfaceRules()
-
-
Method Details
-
stoneDepthCheck
public static SurfaceRules.ConditionSource stoneDepthCheck(int offset, boolean addSurfaceDepth, CaveSurface surfaceType) -
stoneDepthCheck
public static SurfaceRules.ConditionSource stoneDepthCheck(int offset, boolean addSurfaceDepth, int secondaryDepthRange, CaveSurface surfaceType) -
not
-
yBlockCheck
public static SurfaceRules.ConditionSource yBlockCheck(VerticalAnchor anchor, int surfaceDepthMultiplier) -
yStartCheck
public static SurfaceRules.ConditionSource yStartCheck(VerticalAnchor anchor, int surfaceDepthMultiplier) -
waterBlockCheck
-
waterStartCheck
-
isBiome
-
isBiome
-
noiseCondition
public static SurfaceRules.ConditionSource noiseCondition(ResourceKey<NormalNoise.NoiseParameters> noise, double minThreshold) -
noiseCondition
public static SurfaceRules.ConditionSource noiseCondition(ResourceKey<NormalNoise.NoiseParameters> noise, double minThreshold, double maxThreshold) -
verticalGradient
public static SurfaceRules.ConditionSource verticalGradient(String randomName, VerticalAnchor trueAtAndBelow, VerticalAnchor falseAtAndAbove) -
steep
-
hole
-
abovePreliminarySurface
-
temperature
-
ifTrue
public static SurfaceRules.RuleSource ifTrue(SurfaceRules.ConditionSource ifTrue, SurfaceRules.RuleSource thenRun) -
sequence
-
state
-
bandlands
-
register
static <A> com.mojang.serialization.MapCodec<? extends A> register(Registry<com.mojang.serialization.MapCodec<? extends A>> registry, String name, KeyDispatchDataCodec<? extends A> codec)
-