Record Class StoneClusterConfiguration
java.lang.Object
java.lang.Record
com.lightning.northstar.world.features.configuration.StoneClusterConfiguration
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record StoneClusterConfiguration(int floorToCeilingSearchRange, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider stone_provider, net.minecraft.world.level.material.FluidState fluid_provider, net.minecraft.util.valueproviders.IntProvider height, net.minecraft.util.valueproviders.IntProvider radius, int maxStalagmiteStalactiteHeightDiff, int heightDeviation, net.minecraft.util.valueproviders.IntProvider dripstoneBlockLayerThickness, net.minecraft.util.valueproviders.FloatProvider density, net.minecraft.util.valueproviders.FloatProvider wetness, net.minecraft.util.valueproviders.FloatProvider lavaness, net.minecraft.util.valueproviders.FloatProvider thirdthingness, float chanceOfDripstoneColumnAtMaxDistanceFromCenter, int maxDistanceFromEdgeAffectingChanceOfDripstoneColumn, int maxDistanceFromCenterAffectingHeightBias)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StoneClusterConfiguration> Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionStoneClusterConfiguration(int floorToCeilingSearchRange, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider stone_provider, net.minecraft.world.level.material.FluidState fluid_provider, net.minecraft.util.valueproviders.IntProvider height, net.minecraft.util.valueproviders.IntProvider radius, int maxStalagmiteStalactiteHeightDiff, int heightDeviation, net.minecraft.util.valueproviders.IntProvider dripstoneBlockLayerThickness, net.minecraft.util.valueproviders.FloatProvider density, net.minecraft.util.valueproviders.FloatProvider wetness, net.minecraft.util.valueproviders.FloatProvider lavaness, net.minecraft.util.valueproviders.FloatProvider thirdthingness, float chanceOfDripstoneColumnAtMaxDistanceFromCenter, int maxDistanceFromEdgeAffectingChanceOfDripstoneColumn, int maxDistanceFromCenterAffectingHeightBias) Creates an instance of aStoneClusterConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thechanceOfDripstoneColumnAtMaxDistanceFromCenterrecord component.net.minecraft.util.valueproviders.FloatProviderdensity()Returns the value of thedensityrecord component.net.minecraft.util.valueproviders.IntProviderReturns the value of thedripstoneBlockLayerThicknessrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefloorToCeilingSearchRangerecord component.net.minecraft.world.level.material.FluidStateReturns the value of thefluid_providerrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.util.valueproviders.IntProviderheight()Returns the value of theheightrecord component.intReturns the value of theheightDeviationrecord component.net.minecraft.util.valueproviders.FloatProviderlavaness()Returns the value of thelavanessrecord component.intReturns the value of themaxDistanceFromCenterAffectingHeightBiasrecord component.intReturns the value of themaxDistanceFromEdgeAffectingChanceOfDripstoneColumnrecord component.intReturns the value of themaxStalagmiteStalactiteHeightDiffrecord component.net.minecraft.util.valueproviders.IntProviderradius()Returns the value of theradiusrecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of thestone_providerrecord component.net.minecraft.util.valueproviders.FloatProviderReturns the value of thethirdthingnessrecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.util.valueproviders.FloatProviderwetness()Returns the value of thewetnessrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
getFeatures
-
Field Details
-
CODEC
-
-
Constructor Details
-
StoneClusterConfiguration
public StoneClusterConfiguration(int floorToCeilingSearchRange, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider stone_provider, net.minecraft.world.level.material.FluidState fluid_provider, net.minecraft.util.valueproviders.IntProvider height, net.minecraft.util.valueproviders.IntProvider radius, int maxStalagmiteStalactiteHeightDiff, int heightDeviation, net.minecraft.util.valueproviders.IntProvider dripstoneBlockLayerThickness, net.minecraft.util.valueproviders.FloatProvider density, net.minecraft.util.valueproviders.FloatProvider wetness, net.minecraft.util.valueproviders.FloatProvider lavaness, net.minecraft.util.valueproviders.FloatProvider thirdthingness, float chanceOfDripstoneColumnAtMaxDistanceFromCenter, int maxDistanceFromEdgeAffectingChanceOfDripstoneColumn, int maxDistanceFromCenterAffectingHeightBias) Creates an instance of aStoneClusterConfigurationrecord class.- Parameters:
floorToCeilingSearchRange- the value for thefloorToCeilingSearchRangerecord componentstone_provider- the value for thestone_providerrecord componentfluid_provider- the value for thefluid_providerrecord componentheight- the value for theheightrecord componentradius- the value for theradiusrecord componentmaxStalagmiteStalactiteHeightDiff- the value for themaxStalagmiteStalactiteHeightDiffrecord componentheightDeviation- the value for theheightDeviationrecord componentdripstoneBlockLayerThickness- the value for thedripstoneBlockLayerThicknessrecord componentdensity- the value for thedensityrecord componentwetness- the value for thewetnessrecord componentlavaness- the value for thelavanessrecord componentthirdthingness- the value for thethirdthingnessrecord componentchanceOfDripstoneColumnAtMaxDistanceFromCenter- the value for thechanceOfDripstoneColumnAtMaxDistanceFromCenterrecord componentmaxDistanceFromEdgeAffectingChanceOfDripstoneColumn- the value for themaxDistanceFromEdgeAffectingChanceOfDripstoneColumnrecord componentmaxDistanceFromCenterAffectingHeightBias- the value for themaxDistanceFromCenterAffectingHeightBiasrecord component
-
-
Method Details
-
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 '=='. -
floorToCeilingSearchRange
public int floorToCeilingSearchRange()Returns the value of thefloorToCeilingSearchRangerecord component.- Returns:
- the value of the
floorToCeilingSearchRangerecord component
-
stone_provider
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider stone_provider()Returns the value of thestone_providerrecord component.- Returns:
- the value of the
stone_providerrecord component
-
fluid_provider
public net.minecraft.world.level.material.FluidState fluid_provider()Returns the value of thefluid_providerrecord component.- Returns:
- the value of the
fluid_providerrecord component
-
height
public net.minecraft.util.valueproviders.IntProvider height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
radius
public net.minecraft.util.valueproviders.IntProvider radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
maxStalagmiteStalactiteHeightDiff
public int maxStalagmiteStalactiteHeightDiff()Returns the value of themaxStalagmiteStalactiteHeightDiffrecord component.- Returns:
- the value of the
maxStalagmiteStalactiteHeightDiffrecord component
-
heightDeviation
public int heightDeviation()Returns the value of theheightDeviationrecord component.- Returns:
- the value of the
heightDeviationrecord component
-
dripstoneBlockLayerThickness
public net.minecraft.util.valueproviders.IntProvider dripstoneBlockLayerThickness()Returns the value of thedripstoneBlockLayerThicknessrecord component.- Returns:
- the value of the
dripstoneBlockLayerThicknessrecord component
-
density
public net.minecraft.util.valueproviders.FloatProvider density()Returns the value of thedensityrecord component.- Returns:
- the value of the
densityrecord component
-
wetness
public net.minecraft.util.valueproviders.FloatProvider wetness()Returns the value of thewetnessrecord component.- Returns:
- the value of the
wetnessrecord component
-
lavaness
public net.minecraft.util.valueproviders.FloatProvider lavaness()Returns the value of thelavanessrecord component.- Returns:
- the value of the
lavanessrecord component
-
thirdthingness
public net.minecraft.util.valueproviders.FloatProvider thirdthingness()Returns the value of thethirdthingnessrecord component.- Returns:
- the value of the
thirdthingnessrecord component
-
chanceOfDripstoneColumnAtMaxDistanceFromCenter
public float chanceOfDripstoneColumnAtMaxDistanceFromCenter()Returns the value of thechanceOfDripstoneColumnAtMaxDistanceFromCenterrecord component.- Returns:
- the value of the
chanceOfDripstoneColumnAtMaxDistanceFromCenterrecord component
-
maxDistanceFromEdgeAffectingChanceOfDripstoneColumn
public int maxDistanceFromEdgeAffectingChanceOfDripstoneColumn()Returns the value of themaxDistanceFromEdgeAffectingChanceOfDripstoneColumnrecord component.- Returns:
- the value of the
maxDistanceFromEdgeAffectingChanceOfDripstoneColumnrecord component
-
maxDistanceFromCenterAffectingHeightBias
public int maxDistanceFromCenterAffectingHeightBias()Returns the value of themaxDistanceFromCenterAffectingHeightBiasrecord component.- Returns:
- the value of the
maxDistanceFromCenterAffectingHeightBiasrecord component
-