Class MaterialRules
java.lang.Object
net.minecraft.world.gen.surfacebuilder.MaterialRules
- Mappings:
Namespace Name official ctm
intermediary net/minecraft/class_6686
named net/minecraft/world/gen/surfacebuilder/MaterialRules
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
private static final record
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
-
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()
method_39472
(String string, YOffset yOffset, YOffset yOffset2) method_39549
(int int2, boolean bool, boolean bool2, VerticalSurfaceType verticalSurfaceType) noiseThreshold
(RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> registryKey, double double2) noiseThreshold
(RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> registryKey, double double2, double double3) not
(MaterialRules.MaterialCondition target) static MaterialRules.MaterialRule
sequence
(MaterialRules.MaterialRule firstRule, MaterialRules.MaterialRule[] rules) static MaterialRules.MaterialRule
water
(int offset, int runDepthMultiplier) waterWithStoneDepth
(int offset, int runDepthMultiplier)
-
Field Details
-
STONE_DEPTH_FLOOR
- Mappings:
Namespace Name Mixin selector official a
Lctm;a:Lctm$f;
intermediary field_35222
Lnet/minecraft/class_6686;field_35222:Lnet/minecraft/class_6686$class_6693;
named STONE_DEPTH_FLOOR
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;STONE_DEPTH_FLOOR:Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
STONE_DEPTH_FLOOR_WITH_RUN_DEPTH
- Mappings:
Namespace Name Mixin selector official b
Lctm;b:Lctm$f;
intermediary field_35223
Lnet/minecraft/class_6686;field_35223:Lnet/minecraft/class_6686$class_6693;
named STONE_DEPTH_FLOOR_WITH_RUN_DEPTH
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;STONE_DEPTH_FLOOR_WITH_RUN_DEPTH:Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
field_35494
- Mappings:
Namespace Name Mixin selector official c
Lctm;c:Lctm$f;
intermediary field_35494
Lnet/minecraft/class_6686;field_35494:Lnet/minecraft/class_6686$class_6693;
named field_35494
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;field_35494:Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
STONE_DEPTH_CEILING
- Mappings:
Namespace Name Mixin selector official d
Lctm;d:Lctm$f;
intermediary field_35224
Lnet/minecraft/class_6686;field_35224:Lnet/minecraft/class_6686$class_6693;
named STONE_DEPTH_CEILING
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;STONE_DEPTH_CEILING:Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
-
Constructor Details
-
MaterialRules
public MaterialRules()
-
-
Method Details
-
method_39549
public static MaterialRules.MaterialCondition method_39549(int int2, boolean bool, boolean bool2, VerticalSurfaceType verticalSurfaceType) - Mappings:
Namespace Name Mixin selector official a
Lctm;a(IZZLddd;)Lctm$f;
intermediary method_39549
Lnet/minecraft/class_6686;method_39549(IZZLnet/minecraft/class_5932;)Lnet/minecraft/class_6686$class_6693;
named method_39549
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;method_39549(IZZLnet/minecraft/util/math/VerticalSurfaceType;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
not
- Mappings:
Namespace Name Mixin selector official a
Lctm;a(Lctm$f;)Lctm$f;
intermediary method_39048
Lnet/minecraft/class_6686;method_39048(Lnet/minecraft/class_6686$class_6693;)Lnet/minecraft/class_6686$class_6693;
named not
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;not(Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
aboveY
- Mappings:
Namespace Name Mixin selector official a
Lctm;a(Lctp;I)Lctm$f;
intermediary method_39051
Lnet/minecraft/class_6686;method_39051(Lnet/minecraft/class_5843;I)Lnet/minecraft/class_6686$class_6693;
named aboveY
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;aboveY(Lnet/minecraft/world/gen/YOffset;I)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
aboveYWithStoneDepth
public static MaterialRules.MaterialCondition aboveYWithStoneDepth(YOffset anchor, int runDepthMultiplier) - Mappings:
Namespace Name Mixin selector official b
Lctm;b(Lctp;I)Lctm$f;
intermediary method_39058
Lnet/minecraft/class_6686;method_39058(Lnet/minecraft/class_5843;I)Lnet/minecraft/class_6686$class_6693;
named aboveYWithStoneDepth
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;aboveYWithStoneDepth(Lnet/minecraft/world/gen/YOffset;I)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
water
- Mappings:
Namespace Name Mixin selector official a
Lctm;a(II)Lctm$f;
intermediary method_39046
Lnet/minecraft/class_6686;method_39046(II)Lnet/minecraft/class_6686$class_6693;
named water
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;water(II)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
waterWithStoneDepth
public static MaterialRules.MaterialCondition waterWithStoneDepth(int offset, int runDepthMultiplier) - Mappings:
Namespace Name Mixin selector official b
Lctm;b(II)Lctm$f;
intermediary method_39057
Lnet/minecraft/class_6686;method_39057(II)Lnet/minecraft/class_6686$class_6693;
named waterWithStoneDepth
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;waterWithStoneDepth(II)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
biome
- Mappings:
Namespace Name Mixin selector official a
Lctm;a([Lya;)Lctm$f;
intermediary method_39055
Lnet/minecraft/class_6686;method_39055([Lnet/minecraft/class_5321;)Lnet/minecraft/class_6686$class_6693;
named biome
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;biome([Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
biome
- Mappings:
Namespace Name Mixin selector official a
Lctm;a(Ljava/util/List;)Lctm$c;
intermediary method_39054
Lnet/minecraft/class_6686;method_39054(Ljava/util/List;)Lnet/minecraft/class_6686$class_6689;
named biome
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;biome(Ljava/util/List;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$BiomeMaterialCondition;
-
noiseThreshold
public static MaterialRules.MaterialCondition noiseThreshold(RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> registryKey, double double2) - Mappings:
Namespace Name Mixin selector official a
Lctm;a(Lya;D)Lctm$f;
intermediary method_39052
Lnet/minecraft/class_6686;method_39052(Lnet/minecraft/class_5321;D)Lnet/minecraft/class_6686$class_6693;
named noiseThreshold
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;noiseThreshold(Lnet/minecraft/util/registry/RegistryKey;D)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
noiseThreshold
public static MaterialRules.MaterialCondition noiseThreshold(RegistryKey<DoublePerlinNoiseSampler.NoiseParameters> registryKey, double double2, double double3) - Mappings:
Namespace Name Mixin selector official a
Lctm;a(Lya;DD)Lctm$f;
intermediary method_39053
Lnet/minecraft/class_6686;method_39053(Lnet/minecraft/class_5321;DD)Lnet/minecraft/class_6686$class_6693;
named noiseThreshold
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;noiseThreshold(Lnet/minecraft/util/registry/RegistryKey;DD)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
method_39472
public static MaterialRules.MaterialCondition method_39472(String string, YOffset yOffset, YOffset yOffset2) - Mappings:
Namespace Name Mixin selector official a
Lctm;a(Ljava/lang/String;Lctp;Lctp;)Lctm$f;
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;
named method_39472
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;method_39472(Ljava/lang/String;Lnet/minecraft/world/gen/YOffset;Lnet/minecraft/world/gen/YOffset;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
steepSlope
- Mappings:
Namespace Name Mixin selector official a
Lctm;a()Lctm$f;
intermediary method_39045
Lnet/minecraft/class_6686;method_39045()Lnet/minecraft/class_6686$class_6693;
named steepSlope
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;steepSlope()Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
hole
- Mappings:
Namespace Name Mixin selector official b
Lctm;b()Lctm$f;
intermediary method_39056
Lnet/minecraft/class_6686;method_39056()Lnet/minecraft/class_6686$class_6693;
named hole
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;hole()Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
method_39473
- Mappings:
Namespace Name Mixin selector official c
Lctm;c()Lctm$f;
intermediary method_39473
Lnet/minecraft/class_6686;method_39473()Lnet/minecraft/class_6686$class_6693;
named method_39473
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;method_39473()Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
temperature
- Mappings:
Namespace Name Mixin selector official d
Lctm;d()Lctm$f;
intermediary method_39059
Lnet/minecraft/class_6686;method_39059()Lnet/minecraft/class_6686$class_6693;
named temperature
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;temperature()Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;
-
condition
public static MaterialRules.MaterialRule condition(MaterialRules.MaterialCondition condition, MaterialRules.MaterialRule rule) - Mappings:
Namespace Name Mixin selector official a
Lctm;a(Lctm$f;Lctm$o;)Lctm$o;
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;
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;
-
sequence
public static MaterialRules.MaterialRule sequence(MaterialRules.MaterialRule firstRule, MaterialRules.MaterialRule[] rules) - Mappings:
Namespace Name Mixin selector official a
Lctm;a(Lctm$o;[Lctm$o;)Lctm$o;
intermediary method_39050
Lnet/minecraft/class_6686;method_39050(Lnet/minecraft/class_6686$class_6708;[Lnet/minecraft/class_6686$class_6708;)Lnet/minecraft/class_6686$class_6708;
named sequence
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;sequence(Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialRule;[Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialRule;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialRule;
-
block
- Mappings:
Namespace Name Mixin selector official a
Lctm;a(Lcnv;)Lctm$o;
intermediary method_39047
Lnet/minecraft/class_6686;method_39047(Lnet/minecraft/class_2680;)Lnet/minecraft/class_6686$class_6708;
named block
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;block(Lnet/minecraft/block/BlockState;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialRule;
-
terracottaBands
- Mappings:
Namespace Name Mixin selector official e
Lctm;e()Lctm$o;
intermediary method_39060
Lnet/minecraft/class_6686;method_39060()Lnet/minecraft/class_6686$class_6708;
named terracottaBands
Lnet/minecraft/world/gen/surfacebuilder/MaterialRules;terracottaBands()Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialRule;
-