Class ExtendedMaterialRules
java.lang.Object
net.rodofire.easierworldcreator.world.gen.surfacebuilder.ExtendedMaterialRules
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.gen.surfacebuilder.MaterialRules.MaterialConditionfullNoiseThresold(net.minecraft.registry.RegistryKey<net.minecraft.util.math.noise.DoublePerlinNoiseSampler.NoiseParameters> noise, double minThreshold, double maxThreshold) static net.minecraft.world.gen.surfacebuilder.MaterialRules.MaterialConditionrandom(net.minecraft.util.Identifier name, float bound) method to place a block randomly
-
Constructor Details
-
ExtendedMaterialRules
public ExtendedMaterialRules()
-
-
Method Details
-
fullNoiseThresold
public static net.minecraft.world.gen.surfacebuilder.MaterialRules.MaterialCondition fullNoiseThresold(net.minecraft.registry.RegistryKey<net.minecraft.util.math.noise.DoublePerlinNoiseSampler.NoiseParameters> noise, double minThreshold, double maxThreshold) -
random
public static net.minecraft.world.gen.surfacebuilder.MaterialRules.MaterialCondition random(net.minecraft.util.Identifier 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
-