Class ExtendedSurfaceRules
java.lang.Object
fr.rodofire.ewc.world.gen.surfacebuilder.ExtendedSurfaceRules
class to manage new surface rules
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.level.levelgen.SurfaceRules.ConditionSourcefullNoiseThresold(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.synth.NormalNoise.NoiseParameters> noise, double minThreshold, double maxThreshold) static net.minecraft.world.level.levelgen.SurfaceRules.ConditionSourcerandom(net.minecraft.resources.ResourceLocation name, float bound) method to place a block randomly
-
Constructor Details
-
ExtendedSurfaceRules
public ExtendedSurfaceRules()
-
-
Method Details
-
fullNoiseThresold
public static net.minecraft.world.level.levelgen.SurfaceRules.ConditionSource fullNoiseThresold(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.synth.NormalNoise.NoiseParameters> noise, double minThreshold, double maxThreshold) -
random
public static net.minecraft.world.level.levelgen.SurfaceRules.ConditionSource random(net.minecraft.resources.ResourceLocation name, float bound) method to place a block randomly- Parameters:
name- the name of the conditionbound- the bound that determines if the block is placed. Must be between0f - 1f.- 0f means that the value will always be false
- 0.5f means that the block will be placed 50% of the time
- 1f means that the block will always be placed
- Returns:
- the material condition
-