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 pIfTrue, SurfaceRules.RuleSource pThenRun) private static SurfaceRules.BiomeConditionSource
isBiome
(List<ResourceKey<Biome>> pBiomes) static SurfaceRules.ConditionSource
isBiome
(ResourceKey<Biome>... pBiomes) static SurfaceRules.ConditionSource
noiseCondition
(ResourceKey<NormalNoise.NoiseParameters> pNoise, double pMinThreshold) static SurfaceRules.ConditionSource
noiseCondition
(ResourceKey<NormalNoise.NoiseParameters> pNoise, double pMinThreshold, double pMaxThreshold) static SurfaceRules.ConditionSource
not
(SurfaceRules.ConditionSource pTarget) (package private) static <A> com.mojang.serialization.MapCodec
<? extends A> register
(Registry<com.mojang.serialization.MapCodec<? extends A>> p_224604_, String p_224605_, KeyDispatchDataCodec<? extends A> p_224606_) static SurfaceRules.RuleSource
sequence
(SurfaceRules.RuleSource... pRules) static SurfaceRules.RuleSource
state
(BlockState pResultState) static SurfaceRules.ConditionSource
steep()
static SurfaceRules.ConditionSource
stoneDepthCheck
(int pOffset, boolean pAddSurfaceDepth, int pSecondaryDepthRange, CaveSurface pSurfaceType) static SurfaceRules.ConditionSource
stoneDepthCheck
(int pOffset, boolean pAddSurfaceDepth, CaveSurface pSurfaceType) static SurfaceRules.ConditionSource
static SurfaceRules.ConditionSource
verticalGradient
(String pRandomName, VerticalAnchor pTrueAtAndBelow, VerticalAnchor pFalseAtAndAbove) static SurfaceRules.ConditionSource
waterBlockCheck
(int pOffset, int pSurfaceDepthMultiplier) static SurfaceRules.ConditionSource
waterStartCheck
(int pOffset, int pSurfaceDepthMultiplier) static SurfaceRules.ConditionSource
yBlockCheck
(VerticalAnchor pAnchor, int pSurfaceDepthMultiplier) static SurfaceRules.ConditionSource
yStartCheck
(VerticalAnchor pAnchor, int pSurfaceDepthMultiplier)
-
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 pOffset, boolean pAddSurfaceDepth, CaveSurface pSurfaceType) -
stoneDepthCheck
public static SurfaceRules.ConditionSource stoneDepthCheck(int pOffset, boolean pAddSurfaceDepth, int pSecondaryDepthRange, CaveSurface pSurfaceType) -
not
-
yBlockCheck
public static SurfaceRules.ConditionSource yBlockCheck(VerticalAnchor pAnchor, int pSurfaceDepthMultiplier) -
yStartCheck
public static SurfaceRules.ConditionSource yStartCheck(VerticalAnchor pAnchor, int pSurfaceDepthMultiplier) -
waterBlockCheck
public static SurfaceRules.ConditionSource waterBlockCheck(int pOffset, int pSurfaceDepthMultiplier) -
waterStartCheck
public static SurfaceRules.ConditionSource waterStartCheck(int pOffset, int pSurfaceDepthMultiplier) -
isBiome
-
isBiome
-
noiseCondition
public static SurfaceRules.ConditionSource noiseCondition(ResourceKey<NormalNoise.NoiseParameters> pNoise, double pMinThreshold) -
noiseCondition
public static SurfaceRules.ConditionSource noiseCondition(ResourceKey<NormalNoise.NoiseParameters> pNoise, double pMinThreshold, double pMaxThreshold) -
verticalGradient
public static SurfaceRules.ConditionSource verticalGradient(String pRandomName, VerticalAnchor pTrueAtAndBelow, VerticalAnchor pFalseAtAndAbove) -
steep
-
hole
-
abovePreliminarySurface
-
temperature
-
ifTrue
public static SurfaceRules.RuleSource ifTrue(SurfaceRules.ConditionSource pIfTrue, SurfaceRules.RuleSource pThenRun) -
sequence
-
state
-
bandlands
-
register
static <A> com.mojang.serialization.MapCodec<? extends A> register(Registry<com.mojang.serialization.MapCodec<? extends A>> p_224604_, String p_224605_, KeyDispatchDataCodec<? extends A> p_224606_)
-