Record Class FadingDiskTagFeatureConfig
java.lang.Object
java.lang.Record
net.frozenblock.lib.worldgen.feature.api.features.config.FadingDiskTagFeatureConfig
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record FadingDiskTagFeatureConfig(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 innerChance, float innerPercent, float fadeStartDistancePercent, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> innerReplaceableBlocks, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> outerReplaceableBlocks, 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<FadingDiskTagFeatureConfig> Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionFadingDiskTagFeatureConfig(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 innerChance, float innerPercent, float fadeStartDistancePercent, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> innerReplaceableBlocks, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> outerReplaceableBlocks, net.minecraft.world.level.levelgen.Heightmap.Types heightmap) Creates an instance of aFadingDiskTagFeatureConfigrecord 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.tags.TagKey<net.minecraft.world.level.block.Block> Returns the value of theinnerReplaceableBlocksrecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of theinnerStaterecord component.net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> Returns the value of theouterReplaceableBlocksrecord 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
-
FadingDiskTagFeatureConfig
public FadingDiskTagFeatureConfig(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 innerChance, float innerPercent, float fadeStartDistancePercent, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> innerReplaceableBlocks, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> outerReplaceableBlocks, net.minecraft.world.level.levelgen.Heightmap.Types heightmap) Creates an instance of aFadingDiskTagFeatureConfigrecord 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 componentinnerChance- the value for theinnerChancerecord componentinnerPercent- the value for theinnerPercentrecord componentfadeStartDistancePercent- the value for thefadeStartDistancePercentrecord componentinnerReplaceableBlocks- the value for theinnerReplaceableBlocksrecord componentouterReplaceableBlocks- the value for theouterReplaceableBlocksrecord 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
-
innerChance
public float innerChance()Returns the value of theinnerChancerecord component.- Returns:
- the value of the
innerChancerecord component
-
innerPercent
public float innerPercent()Returns the value of theinnerPercentrecord component.- Returns:
- the value of the
innerPercentrecord component
-
fadeStartDistancePercent
public float fadeStartDistancePercent()Returns the value of thefadeStartDistancePercentrecord component.- Returns:
- the value of the
fadeStartDistancePercentrecord component
-
innerReplaceableBlocks
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> innerReplaceableBlocks()Returns the value of theinnerReplaceableBlocksrecord component.- Returns:
- the value of the
innerReplaceableBlocksrecord component
-
outerReplaceableBlocks
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> outerReplaceableBlocks()Returns the value of theouterReplaceableBlocksrecord component.- Returns:
- the value of the
outerReplaceableBlocksrecord component
-
heightmap
public net.minecraft.world.level.levelgen.Heightmap.Types heightmap()Returns the value of theheightmaprecord component.- Returns:
- the value of the
heightmaprecord component
-