Record Class ExtendedMaterialRules.FullNoiseThresholdMaterialCondition
java.lang.Object
java.lang.Record
net.rodofire.easierworldcreator.world.gen.surfacebuilder.ExtendedMaterialRules.FullNoiseThresholdMaterialCondition
- All Implemented Interfaces:
Function<net.minecraft.world.gen.surfacebuilder.MaterialRules.MaterialRuleContext,,net.minecraft.world.gen.surfacebuilder.MaterialRules.BooleanSupplier> net.minecraft.world.gen.surfacebuilder.MaterialRules.MaterialCondition
- Enclosing class:
ExtendedMaterialRules
public static record ExtendedMaterialRules.FullNoiseThresholdMaterialCondition(net.minecraft.registry.RegistryKey<net.minecraft.util.math.noise.DoublePerlinNoiseSampler.NoiseParameters> noise, double minThreshold, double maxThreshold)
extends Record
implements net.minecraft.world.gen.surfacebuilder.MaterialRules.MaterialCondition
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.util.dynamic.CodecHolder<ExtendedMaterialRules.FullNoiseThresholdMaterialCondition> -
Constructor Summary
ConstructorsConstructorDescriptionFullNoiseThresholdMaterialCondition(net.minecraft.registry.RegistryKey<net.minecraft.util.math.noise.DoublePerlinNoiseSampler.NoiseParameters> noise, double minThreshold, double maxThreshold) Creates an instance of aFullNoiseThresholdMaterialConditionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.gen.surfacebuilder.MaterialRules.BooleanSupplierapply(net.minecraft.world.gen.surfacebuilder.MaterialRules.MaterialRuleContext materialRuleContext) net.minecraft.util.dynamic.CodecHolder<? extends net.minecraft.world.gen.surfacebuilder.MaterialRules.MaterialCondition> codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themaxThresholdrecord component.doubleReturns the value of theminThresholdrecord component.net.minecraft.registry.RegistryKey<net.minecraft.util.math.noise.DoublePerlinNoiseSampler.NoiseParameters> noise()Returns the value of thenoiserecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
public static final net.minecraft.util.dynamic.CodecHolder<ExtendedMaterialRules.FullNoiseThresholdMaterialCondition> CODEC
-
-
Constructor Details
-
FullNoiseThresholdMaterialCondition
public FullNoiseThresholdMaterialCondition(net.minecraft.registry.RegistryKey<net.minecraft.util.math.noise.DoublePerlinNoiseSampler.NoiseParameters> noise, double minThreshold, double maxThreshold) Creates an instance of aFullNoiseThresholdMaterialConditionrecord class.- Parameters:
noise- the value for thenoiserecord componentminThreshold- the value for theminThresholdrecord componentmaxThreshold- the value for themaxThresholdrecord component
-
-
Method Details
-
codec
public net.minecraft.util.dynamic.CodecHolder<? extends net.minecraft.world.gen.surfacebuilder.MaterialRules.MaterialCondition> codec()- Specified by:
codecin interfacenet.minecraft.world.gen.surfacebuilder.MaterialRules.MaterialCondition
-
apply
public net.minecraft.world.gen.surfacebuilder.MaterialRules.BooleanSupplier apply(net.minecraft.world.gen.surfacebuilder.MaterialRules.MaterialRuleContext materialRuleContext) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
noise
public net.minecraft.registry.RegistryKey<net.minecraft.util.math.noise.DoublePerlinNoiseSampler.NoiseParameters> noise()Returns the value of thenoiserecord component.- Returns:
- the value of the
noiserecord component
-
minThreshold
public double minThreshold()Returns the value of theminThresholdrecord component.- Returns:
- the value of the
minThresholdrecord component
-
maxThreshold
public double maxThreshold()Returns the value of themaxThresholdrecord component.- Returns:
- the value of the
maxThresholdrecord component
-