Record Class FadingDiskCarpetFeatureConfig
java.lang.Object
java.lang.Record
net.frozenblock.lib.worldgen.feature.api.features.config.FadingDiskCarpetFeatureConfig
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record FadingDiskCarpetFeatureConfig(boolean useHeightmapInsteadOfCircularPlacement, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider innerState, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider outerState, net.minecraft.util.valueproviders.IntProvider radius, float placementChance, float innerPercent, float innerChance, float fadeStartDistancePercent, net.minecraft.world.level.levelgen.Heightmap.Types heightmap)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FadingDiskCarpetFeatureConfig> Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionFadingDiskCarpetFeatureConfig(boolean useHeightmapInsteadOfCircularPlacement, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider innerState, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider outerState, net.minecraft.util.valueproviders.IntProvider radius, float placementChance, float innerPercent, float innerChance, float fadeStartDistancePercent, net.minecraft.world.level.levelgen.Heightmap.Types heightmap) Creates an instance of aFadingDiskCarpetFeatureConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.floatReturns the value of thefadeStartDistancePercentrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.world.level.levelgen.Heightmap.TypesReturns the value of theheightmaprecord component.floatReturns the value of theinnerChancerecord component.floatReturns the value of theinnerPercentrecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of theinnerStaterecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of theouterStaterecord component.floatReturns the value of theplacementChancerecord component.net.minecraft.util.valueproviders.IntProviderradius()Returns the value of theradiusrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseHeightmapInsteadOfCircularPlacementrecord 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
-
FadingDiskCarpetFeatureConfig
public FadingDiskCarpetFeatureConfig(boolean useHeightmapInsteadOfCircularPlacement, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider innerState, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider outerState, net.minecraft.util.valueproviders.IntProvider radius, float placementChance, float innerPercent, float innerChance, float fadeStartDistancePercent, net.minecraft.world.level.levelgen.Heightmap.Types heightmap) Creates an instance of aFadingDiskCarpetFeatureConfigrecord class.- Parameters:
useHeightmapInsteadOfCircularPlacement- the value for theuseHeightmapInsteadOfCircularPlacementrecord componentinnerState- the value for theinnerStaterecord componentouterState- the value for theouterStaterecord componentradius- the value for theradiusrecord componentplacementChance- the value for theplacementChancerecord componentinnerPercent- the value for theinnerPercentrecord componentinnerChance- the value for theinnerChancerecord componentfadeStartDistancePercent- the value for thefadeStartDistancePercentrecord componentheightmap- the value for theheightmaprecord 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 '=='. -
useHeightmapInsteadOfCircularPlacement
public boolean useHeightmapInsteadOfCircularPlacement()Returns the value of theuseHeightmapInsteadOfCircularPlacementrecord component.- Returns:
- the value of the
useHeightmapInsteadOfCircularPlacementrecord component
-
innerState
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider innerState()Returns the value of theinnerStaterecord component.- Returns:
- the value of the
innerStaterecord component
-
outerState
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider outerState()Returns the value of theouterStaterecord component.- Returns:
- the value of the
outerStaterecord component
-
radius
public net.minecraft.util.valueproviders.IntProvider radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
placementChance
public float placementChance()Returns the value of theplacementChancerecord component.- Returns:
- the value of the
placementChancerecord component
-
innerPercent
public float innerPercent()Returns the value of theinnerPercentrecord component.- Returns:
- the value of the
innerPercentrecord component
-
innerChance
public float innerChance()Returns the value of theinnerChancerecord component.- Returns:
- the value of the
innerChancerecord component
-
fadeStartDistancePercent
public float fadeStartDistancePercent()Returns the value of thefadeStartDistancePercentrecord component.- Returns:
- the value of the
fadeStartDistancePercentrecord component
-
heightmap
public net.minecraft.world.level.levelgen.Heightmap.Types heightmap()Returns the value of theheightmaprecord component.- Returns:
- the value of the
heightmaprecord component
-