Record Class SphereConfig
java.lang.Object
java.lang.Record
com.lightning.northstar.world.features.configuration.SphereConfig
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record SphereConfig(net.minecraft.world.level.levelgen.GeodeBlockSettings geodeBlockSettings, net.minecraft.world.level.levelgen.GeodeLayerSettings geodeLayerSettings, net.minecraft.world.level.levelgen.GeodeCrackSettings geodeCrackSettings, double usePotentialPlacementsChance, double useAlternateLayer0Chance, boolean placementsRequireLayer0Alternate, net.minecraft.util.valueproviders.IntProvider outerWallDistance, net.minecraft.util.valueproviders.IntProvider distributionPoints, net.minecraft.util.valueproviders.IntProvider pointOffset, int minGenOffset, int maxGenOffset, double noiseMultiplier, int invalidBlocksThreshold)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Double> static final com.mojang.serialization.Codec<SphereConfig> Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionSphereConfig(net.minecraft.world.level.levelgen.GeodeBlockSettings geodeBlockSettings, net.minecraft.world.level.levelgen.GeodeLayerSettings geodeLayerSettings, net.minecraft.world.level.levelgen.GeodeCrackSettings geodeCrackSettings, double usePotentialPlacementsChance, double useAlternateLayer0Chance, boolean placementsRequireLayer0Alternate, net.minecraft.util.valueproviders.IntProvider outerWallDistance, net.minecraft.util.valueproviders.IntProvider distributionPoints, net.minecraft.util.valueproviders.IntProvider pointOffset, int minGenOffset, int maxGenOffset, double noiseMultiplier, int invalidBlocksThreshold) Creates an instance of aSphereConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.util.valueproviders.IntProviderReturns the value of thedistributionPointsrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.world.level.levelgen.GeodeBlockSettingsReturns the value of thegeodeBlockSettingsrecord component.net.minecraft.world.level.levelgen.GeodeCrackSettingsReturns the value of thegeodeCrackSettingsrecord component.net.minecraft.world.level.levelgen.GeodeLayerSettingsReturns the value of thegeodeLayerSettingsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theinvalidBlocksThresholdrecord component.intReturns the value of themaxGenOffsetrecord component.intReturns the value of theminGenOffsetrecord component.doubleReturns the value of thenoiseMultiplierrecord component.net.minecraft.util.valueproviders.IntProviderReturns the value of theouterWallDistancerecord component.booleanReturns the value of theplacementsRequireLayer0Alternaterecord component.net.minecraft.util.valueproviders.IntProviderReturns the value of thepointOffsetrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of theuseAlternateLayer0Chancerecord component.doubleReturns the value of theusePotentialPlacementsChancerecord 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
-
CHANCE_RANGE
-
CODEC
-
-
Constructor Details
-
SphereConfig
public SphereConfig(net.minecraft.world.level.levelgen.GeodeBlockSettings geodeBlockSettings, net.minecraft.world.level.levelgen.GeodeLayerSettings geodeLayerSettings, net.minecraft.world.level.levelgen.GeodeCrackSettings geodeCrackSettings, double usePotentialPlacementsChance, double useAlternateLayer0Chance, boolean placementsRequireLayer0Alternate, net.minecraft.util.valueproviders.IntProvider outerWallDistance, net.minecraft.util.valueproviders.IntProvider distributionPoints, net.minecraft.util.valueproviders.IntProvider pointOffset, int minGenOffset, int maxGenOffset, double noiseMultiplier, int invalidBlocksThreshold) Creates an instance of aSphereConfigrecord class.- Parameters:
geodeBlockSettings- the value for thegeodeBlockSettingsrecord componentgeodeLayerSettings- the value for thegeodeLayerSettingsrecord componentgeodeCrackSettings- the value for thegeodeCrackSettingsrecord componentusePotentialPlacementsChance- the value for theusePotentialPlacementsChancerecord componentuseAlternateLayer0Chance- the value for theuseAlternateLayer0Chancerecord componentplacementsRequireLayer0Alternate- the value for theplacementsRequireLayer0Alternaterecord componentouterWallDistance- the value for theouterWallDistancerecord componentdistributionPoints- the value for thedistributionPointsrecord componentpointOffset- the value for thepointOffsetrecord componentminGenOffset- the value for theminGenOffsetrecord componentmaxGenOffset- the value for themaxGenOffsetrecord componentnoiseMultiplier- the value for thenoiseMultiplierrecord componentinvalidBlocksThreshold- the value for theinvalidBlocksThresholdrecord 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 '=='. -
geodeBlockSettings
public net.minecraft.world.level.levelgen.GeodeBlockSettings geodeBlockSettings()Returns the value of thegeodeBlockSettingsrecord component.- Returns:
- the value of the
geodeBlockSettingsrecord component
-
geodeLayerSettings
public net.minecraft.world.level.levelgen.GeodeLayerSettings geodeLayerSettings()Returns the value of thegeodeLayerSettingsrecord component.- Returns:
- the value of the
geodeLayerSettingsrecord component
-
geodeCrackSettings
public net.minecraft.world.level.levelgen.GeodeCrackSettings geodeCrackSettings()Returns the value of thegeodeCrackSettingsrecord component.- Returns:
- the value of the
geodeCrackSettingsrecord component
-
usePotentialPlacementsChance
public double usePotentialPlacementsChance()Returns the value of theusePotentialPlacementsChancerecord component.- Returns:
- the value of the
usePotentialPlacementsChancerecord component
-
useAlternateLayer0Chance
public double useAlternateLayer0Chance()Returns the value of theuseAlternateLayer0Chancerecord component.- Returns:
- the value of the
useAlternateLayer0Chancerecord component
-
placementsRequireLayer0Alternate
public boolean placementsRequireLayer0Alternate()Returns the value of theplacementsRequireLayer0Alternaterecord component.- Returns:
- the value of the
placementsRequireLayer0Alternaterecord component
-
outerWallDistance
public net.minecraft.util.valueproviders.IntProvider outerWallDistance()Returns the value of theouterWallDistancerecord component.- Returns:
- the value of the
outerWallDistancerecord component
-
distributionPoints
public net.minecraft.util.valueproviders.IntProvider distributionPoints()Returns the value of thedistributionPointsrecord component.- Returns:
- the value of the
distributionPointsrecord component
-
pointOffset
public net.minecraft.util.valueproviders.IntProvider pointOffset()Returns the value of thepointOffsetrecord component.- Returns:
- the value of the
pointOffsetrecord component
-
minGenOffset
public int minGenOffset()Returns the value of theminGenOffsetrecord component.- Returns:
- the value of the
minGenOffsetrecord component
-
maxGenOffset
public int maxGenOffset()Returns the value of themaxGenOffsetrecord component.- Returns:
- the value of the
maxGenOffsetrecord component
-
noiseMultiplier
public double noiseMultiplier()Returns the value of thenoiseMultiplierrecord component.- Returns:
- the value of the
noiseMultiplierrecord component
-
invalidBlocksThreshold
public int invalidBlocksThreshold()Returns the value of theinvalidBlocksThresholdrecord component.- Returns:
- the value of the
invalidBlocksThresholdrecord component
-