Class MaterialRules
java.lang.Object
net.minecraft.world.gen.surfacebuilder.MaterialRules
- Mappings:
Namespace Name named net/minecraft/world/gen/surfacebuilder/MaterialRules
intermediary net/minecraft/class_6686
official dzm
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
private static final class
private static final record
protected static interface
Returns aBlockState
to generate at a given position, ornull
.private static interface
private static final record
Applies another block state rule if the given predicate matches, and returnsnull
otherwise.private static final record
private static class
private static enum
private static class
private static final record
private static class
static interface
static interface
protected static final class
private static final record
private static final record
private static final record
Applies the given block state rules in sequence, and returns the first result that isn'tnull
.private static final record
private static final record
Always returns the givenBlockState
.private static enum
private static final record
private static enum
private static enum
private static enum
private static final record
private static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MaterialRules.MaterialCondition
static final MaterialRules.MaterialCondition
static final MaterialRules.MaterialCondition
static final MaterialRules.MaterialCondition
static final MaterialRules.MaterialCondition
static final MaterialRules.MaterialCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaboveYWithStoneDepth
(YOffset anchor, int runDepthMultiplier) private static MaterialRules.BiomeMaterialCondition
biome
(List<RegistryKey<Biome>> biomes) biome
(RegistryKey<Biome>[] biomes) static MaterialRules.MaterialRule
block
(BlockState state) static MaterialRules.MaterialRule
condition
(MaterialRules.MaterialCondition condition, MaterialRules.MaterialRule rule) hole()
noiseThreshold
(RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> noise, double min) noiseThreshold
(RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> noise, double min, double max) not
(MaterialRules.MaterialCondition target) (package private) static <A> com.mojang.serialization.MapCodec
<? extends A> register
(Registry<com.mojang.serialization.MapCodec<? extends A>> registry, String id, CodecHolder<? extends A> codecHolder) static MaterialRules.MaterialRule
sequence
(MaterialRules.MaterialRule[] rules) stoneDepth
(int offset, boolean addSurfaceDepth, int secondaryDepthRange, VerticalSurfaceType verticalSurfaceType) stoneDepth
(int offset, boolean addSurfaceDepth, VerticalSurfaceType verticalSurfaceType) surface()
static MaterialRules.MaterialRule
verticalGradient
(String id, YOffset trueAtAndBelow, YOffset falseAtAndAbove) water
(int offset, int runDepthMultiplier) waterWithStoneDepth
(int offset, int runDepthMultiplier)
-
Field Details
-
STONE_DEPTH_FLOOR
- Mappings:
Namespace Name Mixin selector named STONE_DEPTH_FLOOR
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;STONE_DEPTH_FLOOR:Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary field_35222
Lnet/minecraft/class_6686;field_35222:Lnet/minecraft/class_6686$class_6693;
official a
Ldzm;a:Ldzm$f;
-
STONE_DEPTH_FLOOR_WITH_SURFACE_DEPTH
- Mappings:
Namespace Name Mixin selector named STONE_DEPTH_FLOOR_WITH_SURFACE_DEPTH
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;STONE_DEPTH_FLOOR_WITH_SURFACE_DEPTH:Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary field_35223
Lnet/minecraft/class_6686;field_35223:Lnet/minecraft/class_6686$class_6693;
official b
Ldzm;b:Ldzm$f;
-
STONE_DEPTH_FLOOR_WITH_SURFACE_DEPTH_RANGE_6
- Mappings:
Namespace Name Mixin selector named STONE_DEPTH_FLOOR_WITH_SURFACE_DEPTH_RANGE_6
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;STONE_DEPTH_FLOOR_WITH_SURFACE_DEPTH_RANGE_6:Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary field_36341
Lnet/minecraft/class_6686;field_36341:Lnet/minecraft/class_6686$class_6693;
official c
Ldzm;c:Ldzm$f;
-
STONE_DEPTH_FLOOR_WITH_SURFACE_DEPTH_RANGE_30
- Mappings:
Namespace Name Mixin selector named STONE_DEPTH_FLOOR_WITH_SURFACE_DEPTH_RANGE_30
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;STONE_DEPTH_FLOOR_WITH_SURFACE_DEPTH_RANGE_30:Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary field_36342
Lnet/minecraft/class_6686;field_36342:Lnet/minecraft/class_6686$class_6693;
official d
Ldzm;d:Ldzm$f;
-
STONE_DEPTH_CEILING
- Mappings:
Namespace Name Mixin selector named STONE_DEPTH_CEILING
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;STONE_DEPTH_CEILING:Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary field_35494
Lnet/minecraft/class_6686;field_35494:Lnet/minecraft/class_6686$class_6693;
official e
Ldzm;e:Ldzm$f;
-
STONE_DEPTH_CEILING_WITH_SURFACE_DEPTH
- Mappings:
Namespace Name Mixin selector named STONE_DEPTH_CEILING_WITH_SURFACE_DEPTH
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;STONE_DEPTH_CEILING_WITH_SURFACE_DEPTH:Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary field_35224
Lnet/minecraft/class_6686;field_35224:Lnet/minecraft/class_6686$class_6693;
official f
Ldzm;f:Ldzm$f;
-
-
Constructor Details
-
MaterialRules
public MaterialRules()
-
-
Method Details
-
stoneDepth
public static MaterialRules.MaterialCondition stoneDepth(int offset, boolean addSurfaceDepth, VerticalSurfaceType verticalSurfaceType) - Mappings:
Namespace Name Mixin selector named stoneDepth
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;stoneDepth(IZLnet/minecraft/util/math/VerticalSurfaceType;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_39549
Lnet/minecraft/class_6686;method_39549(IZLnet/minecraft/class_5932;)Lnet/minecraft/class_6686$class_6693;
official a
Ldzm;a(IZLeih;)Ldzm$f;
-
stoneDepth
public static MaterialRules.MaterialCondition stoneDepth(int offset, boolean addSurfaceDepth, int secondaryDepthRange, VerticalSurfaceType verticalSurfaceType) - Mappings:
Namespace Name Mixin selector named stoneDepth
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;stoneDepth(IZILnet/minecraft/util/math/VerticalSurfaceType;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_40023
Lnet/minecraft/class_6686;method_40023(IZILnet/minecraft/class_5932;)Lnet/minecraft/class_6686$class_6693;
official a
Ldzm;a(IZILeih;)Ldzm$f;
-
not
- Mappings:
Namespace Name Mixin selector named not
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;not(Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_39048
Lnet/minecraft/class_6686;method_39048(Lnet/minecraft/class_6686$class_6693;)Lnet/minecraft/class_6686$class_6693;
official a
Ldzm;a(Ldzm$f;)Ldzm$f;
-
aboveY
- Mappings:
Namespace Name Mixin selector named aboveY
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;aboveY(Lnet/minecraft/world/gen/YOffset;I)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_39051
Lnet/minecraft/class_6686;method_39051(Lnet/minecraft/class_5843;I)Lnet/minecraft/class_6686$class_6693;
official a
Ldzm;a(Ldzp;I)Ldzm$f;
-
aboveYWithStoneDepth
public static MaterialRules.MaterialCondition aboveYWithStoneDepth(YOffset anchor, int runDepthMultiplier) - Mappings:
Namespace Name Mixin selector named aboveYWithStoneDepth
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;aboveYWithStoneDepth(Lnet/minecraft/world/gen/YOffset;I)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_39058
Lnet/minecraft/class_6686;method_39058(Lnet/minecraft/class_5843;I)Lnet/minecraft/class_6686$class_6693;
official b
Ldzm;b(Ldzp;I)Ldzm$f;
-
water
- Mappings:
Namespace Name Mixin selector named water
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;water(II)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_39046
Lnet/minecraft/class_6686;method_39046(II)Lnet/minecraft/class_6686$class_6693;
official a
Ldzm;a(II)Ldzm$f;
-
waterWithStoneDepth
public static MaterialRules.MaterialCondition waterWithStoneDepth(int offset, int runDepthMultiplier) - Mappings:
Namespace Name Mixin selector named waterWithStoneDepth
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;waterWithStoneDepth(II)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_39057
Lnet/minecraft/class_6686;method_39057(II)Lnet/minecraft/class_6686$class_6693;
official b
Ldzm;b(II)Ldzm$f;
-
biome
- Mappings:
Namespace Name Mixin selector named biome
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;biome([Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_39055
Lnet/minecraft/class_6686;method_39055([Lnet/minecraft/class_5321;)Lnet/minecraft/class_6686$class_6693;
official a
Ldzm;a([Lakp;)Ldzm$f;
-
biome
- Mappings:
Namespace Name Mixin selector named biome
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;biome(Ljava/util/List;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$BiomeMaterialCondition;
intermediary method_39054
Lnet/minecraft/class_6686;method_39054(Ljava/util/List;)Lnet/minecraft/class_6686$class_6689;
official a
Ldzm;a(Ljava/util/List;)Ldzm$c;
-
noiseThreshold
public static MaterialRules.MaterialCondition noiseThreshold(RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> noise, double min) - Mappings:
Namespace Name Mixin selector named noiseThreshold
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;noiseThreshold(Lnet/minecraft/registry/RegistryKey;D)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_39052
Lnet/minecraft/class_6686;method_39052(Lnet/minecraft/class_5321;D)Lnet/minecraft/class_6686$class_6693;
official a
Ldzm;a(Lakp;D)Ldzm$f;
-
noiseThreshold
public static MaterialRules.MaterialCondition noiseThreshold(RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> noise, double min, double max) - Mappings:
Namespace Name Mixin selector named noiseThreshold
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;noiseThreshold(Lnet/minecraft/registry/RegistryKey;DD)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_39053
Lnet/minecraft/class_6686;method_39053(Lnet/minecraft/class_5321;DD)Lnet/minecraft/class_6686$class_6693;
official a
Ldzm;a(Lakp;DD)Ldzm$f;
-
verticalGradient
public static MaterialRules.MaterialCondition verticalGradient(String id, YOffset trueAtAndBelow, YOffset falseAtAndAbove) - Mappings:
Namespace Name Mixin selector named verticalGradient
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;verticalGradient(Ljava/lang/String;Lnet/minecraft/world/gen/YOffset;Lnet/minecraft/world/gen/YOffset;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_39472
Lnet/minecraft/class_6686;method_39472(Ljava/lang/String;Lnet/minecraft/class_5843;Lnet/minecraft/class_5843;)Lnet/minecraft/class_6686$class_6693;
official a
Ldzm;a(Ljava/lang/String;Ldzp;Ldzp;)Ldzm$f;
-
steepSlope
- Mappings:
Namespace Name Mixin selector named steepSlope
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;steepSlope()Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_39045
Lnet/minecraft/class_6686;method_39045()Lnet/minecraft/class_6686$class_6693;
official a
Ldzm;a()Ldzm$f;
-
hole
- Mappings:
Namespace Name Mixin selector named hole
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;hole()Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_39056
Lnet/minecraft/class_6686;method_39056()Lnet/minecraft/class_6686$class_6693;
official b
Ldzm;b()Ldzm$f;
-
surface
- Mappings:
Namespace Name Mixin selector named surface
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;surface()Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_39473
Lnet/minecraft/class_6686;method_39473()Lnet/minecraft/class_6686$class_6693;
official c
Ldzm;c()Ldzm$f;
-
temperature
- Mappings:
Namespace Name Mixin selector named temperature
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;temperature()Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
intermediary method_39059
Lnet/minecraft/class_6686;method_39059()Lnet/minecraft/class_6686$class_6693;
official d
Ldzm;d()Ldzm$f;
-
condition
public static MaterialRules.MaterialRule condition(MaterialRules.MaterialCondition condition, MaterialRules.MaterialRule rule) - Mappings:
Namespace Name Mixin selector named condition
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;condition(Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialRule;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialRule;
intermediary method_39049
Lnet/minecraft/class_6686;method_39049(Lnet/minecraft/class_6686$class_6693;Lnet/minecraft/class_6686$class_6708;)Lnet/minecraft/class_6686$class_6708;
official a
Ldzm;a(Ldzm$f;Ldzm$o;)Ldzm$o;
-
sequence
- Mappings:
Namespace Name Mixin selector named sequence
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;sequence([Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialRule;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialRule;
intermediary method_39050
Lnet/minecraft/class_6686;method_39050([Lnet/minecraft/class_6686$class_6708;)Lnet/minecraft/class_6686$class_6708;
official a
Ldzm;a([Ldzm$o;)Ldzm$o;
-
block
- Mappings:
Namespace Name Mixin selector named block
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;block(Lnet/minecraft/block/BlockState;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialRule;
intermediary method_39047
Lnet/minecraft/class_6686;method_39047(Lnet/minecraft/class_2680;)Lnet/minecraft/class_6686$class_6708;
official a
Ldzm;a(Ldta;)Ldzm$o;
-
terracottaBands
- Mappings:
Namespace Name Mixin selector named terracottaBands
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;terracottaBands()Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialRule;
intermediary method_39060
Lnet/minecraft/class_6686;method_39060()Lnet/minecraft/class_6686$class_6708;
official e
Ldzm;e()Ldzm$o;
-
register
static <A> com.mojang.serialization.MapCodec<? extends A> register(Registry<com.mojang.serialization.MapCodec<? extends A>> registry, String id, CodecHolder<? extends A> codecHolder) - Mappings:
Namespace Name Mixin selector named register
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;register(Lnet/minecraft/registry/Registry;Ljava/lang/String;Lnet/minecraft/util/dynamic/CodecHolder;)Lcom/mojang/serialization/MapCodec;
intermediary method_42377
Lnet/minecraft/class_6686;method_42377(Lnet/minecraft/class_2378;Ljava/lang/String;Lnet/minecraft/class_7243;)Lcom/mojang/serialization/MapCodec;
official a
Ldzm;a(Ljz;Ljava/lang/String;Layg;)Lcom/mojang/serialization/MapCodec;
-