Record Class Aquifer.Config
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.Aquifer.Config
- Enclosing interface:
Aquifer
public static record Aquifer.Config(DensityFunction barrierNoise, DensityFunction fluidLevelFloodednessNoise, DensityFunction fluidLevelSpreadNoise, DensityFunction lavaNoise, DensityFunction exclusion, DensityFunction surfaceLevel)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DensityFunctionThe field for thebarrierNoiserecord component.static final com.mojang.serialization.Codec<Aquifer.Config> private final DensityFunctionThe field for theexclusionrecord component.private final DensityFunctionThe field for thefluidLevelFloodednessNoiserecord component.private final DensityFunctionThe field for thefluidLevelSpreadNoiserecord component.private final DensityFunctionThe field for thelavaNoiserecord component.private final DensityFunctionThe field for thesurfaceLevelrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConfig(DensityFunction barrierNoise, DensityFunction fluidLevelFloodednessNoise, DensityFunction fluidLevelSpreadNoise, DensityFunction lavaNoise, DensityFunction exclusion, DensityFunction surfaceLevel) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebarrierNoiserecord component.create(DensitySamplerSet cachingSamplers, PositionalRandomFactory positionalRandomFactory, DensityVolume volume, Aquifer.FluidPicker fluidRule) final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexclusionrecord component.Returns the value of thefluidLevelFloodednessNoiserecord component.Returns the value of thefluidLevelSpreadNoiserecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelavaNoiserecord component.Returns the value of thesurfaceLevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
barrierNoise
The field for thebarrierNoiserecord component. -
fluidLevelFloodednessNoise
The field for thefluidLevelFloodednessNoiserecord component. -
fluidLevelSpreadNoise
The field for thefluidLevelSpreadNoiserecord component. -
lavaNoise
The field for thelavaNoiserecord component. -
exclusion
The field for theexclusionrecord component. -
surfaceLevel
The field for thesurfaceLevelrecord component. -
CODEC
-
-
Constructor Details
-
Config
public Config(DensityFunction barrierNoise, DensityFunction fluidLevelFloodednessNoise, DensityFunction fluidLevelSpreadNoise, DensityFunction lavaNoise, DensityFunction exclusion, DensityFunction surfaceLevel) Creates an instance of aConfigrecord class.- Parameters:
barrierNoise- the value for thebarrierNoiserecord componentfluidLevelFloodednessNoise- the value for thefluidLevelFloodednessNoiserecord componentfluidLevelSpreadNoise- the value for thefluidLevelSpreadNoiserecord componentlavaNoise- the value for thelavaNoiserecord componentexclusion- the value for theexclusionrecord componentsurfaceLevel- the value for thesurfaceLevelrecord component
-
-
Method Details
-
create
public Aquifer create(DensitySamplerSet cachingSamplers, PositionalRandomFactory positionalRandomFactory, DensityVolume volume, Aquifer.FluidPicker fluidRule) -
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
barrierNoise
Returns the value of thebarrierNoiserecord component.- Returns:
- the value of the
barrierNoiserecord component
-
fluidLevelFloodednessNoise
Returns the value of thefluidLevelFloodednessNoiserecord component.- Returns:
- the value of the
fluidLevelFloodednessNoiserecord component
-
fluidLevelSpreadNoise
Returns the value of thefluidLevelSpreadNoiserecord component.- Returns:
- the value of the
fluidLevelSpreadNoiserecord component
-
lavaNoise
Returns the value of thelavaNoiserecord component.- Returns:
- the value of the
lavaNoiserecord component
-
exclusion
Returns the value of theexclusionrecord component.- Returns:
- the value of the
exclusionrecord component
-
surfaceLevel
Returns the value of thesurfaceLevelrecord component.- Returns:
- the value of the
surfaceLevelrecord component
-