Class SurfaceRules
java.lang.Object
net.minecraft.world.level.levelgen.SurfaceRules
-
Nested Class Summary
Modifier 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
Modifier 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic SurfaceRules.ConditionSource
static SurfaceRules.RuleSource
static SurfaceRules.ConditionSource
hole()
static SurfaceRules.RuleSource
ifTrue
(SurfaceRules.ConditionSource p_189395_, SurfaceRules.RuleSource p_189396_) private static SurfaceRules.BiomeConditionSource
isBiome
(List<ResourceKey<Biome>> p_189408_) static SurfaceRules.ConditionSource
isBiome
(ResourceKey<Biome>... p_189417_) static SurfaceRules.ConditionSource
noiseCondition
(ResourceKey<NormalNoise.NoiseParameters> p_189410_, double p_189411_) static SurfaceRules.ConditionSource
noiseCondition
(ResourceKey<NormalNoise.NoiseParameters> p_189413_, double p_189414_, double p_189415_) static SurfaceRules.ConditionSource
not
(SurfaceRules.ConditionSource p_189393_) (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... p_198273_) static SurfaceRules.RuleSource
state
(BlockState p_189391_) static SurfaceRules.ConditionSource
steep()
static SurfaceRules.ConditionSource
stoneDepthCheck
(int p_202172_, boolean p_202173_, int p_202174_, CaveSurface p_202175_) static SurfaceRules.ConditionSource
stoneDepthCheck
(int p_202177_, boolean p_202178_, CaveSurface p_202179_) static SurfaceRules.ConditionSource
static SurfaceRules.ConditionSource
verticalGradient
(String p_189404_, VerticalAnchor p_189405_, VerticalAnchor p_189406_) static SurfaceRules.ConditionSource
waterBlockCheck
(int p_189383_, int p_189384_) static SurfaceRules.ConditionSource
waterStartCheck
(int p_189420_, int p_189421_) static SurfaceRules.ConditionSource
yBlockCheck
(VerticalAnchor p_189401_, int p_189402_) static SurfaceRules.ConditionSource
yStartCheck
(VerticalAnchor p_189423_, int p_189424_)
-
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 p_202177_, boolean p_202178_, CaveSurface p_202179_) -
stoneDepthCheck
public static SurfaceRules.ConditionSource stoneDepthCheck(int p_202172_, boolean p_202173_, int p_202174_, CaveSurface p_202175_) -
not
-
yBlockCheck
-
yStartCheck
-
waterBlockCheck
-
waterStartCheck
-
isBiome
-
isBiome
-
noiseCondition
public static SurfaceRules.ConditionSource noiseCondition(ResourceKey<NormalNoise.NoiseParameters> p_189410_, double p_189411_) -
noiseCondition
public static SurfaceRules.ConditionSource noiseCondition(ResourceKey<NormalNoise.NoiseParameters> p_189413_, double p_189414_, double p_189415_) -
verticalGradient
public static SurfaceRules.ConditionSource verticalGradient(String p_189404_, VerticalAnchor p_189405_, VerticalAnchor p_189406_) -
steep
-
hole
-
abovePreliminarySurface
-
temperature
-
ifTrue
public static SurfaceRules.RuleSource ifTrue(SurfaceRules.ConditionSource p_189395_, SurfaceRules.RuleSource p_189396_) -
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_)
-