Record Class FadingDiskTagBiomeFeatureConfig
java.lang.Object
java.lang.Record
net.frozenblock.lib.worldgen.feature.api.features.config.FadingDiskTagBiomeFeatureConfig
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record FadingDiskTagBiomeFeatureConfig(boolean useHeightMapAndNotCircular, 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 placeChance, float innerChance, float innerPercent, float startFadePercent, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> innerReplaceable, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> outerReplaceable, net.minecraft.world.level.levelgen.Heightmap.Types heightmap, net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> placeExceptIn)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FadingDiskTagBiomeFeatureConfig>Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionFadingDiskTagBiomeFeatureConfig(boolean useHeightMapAndNotCircular, 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 placeChance, float innerChance, float innerPercent, float startFadePercent, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> innerReplaceable, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> outerReplaceable, net.minecraft.world.level.levelgen.Heightmap.Types heightmap, net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> placeExceptIn) Creates an instance of aFadingDiskTagBiomeFeatureConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.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 theinnerReplaceablerecord 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 theouterReplaceablerecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of theouterStaterecord component.floatReturns the value of theplaceChancerecord component.net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome>Returns the value of theplaceExceptInrecord component.net.minecraft.util.valueproviders.IntProviderradius()Returns the value of theradiusrecord component.floatReturns the value of thestartFadePercentrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseHeightMapAndNotCircularrecord 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
-
FadingDiskTagBiomeFeatureConfig
public FadingDiskTagBiomeFeatureConfig(boolean useHeightMapAndNotCircular, 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 placeChance, float innerChance, float innerPercent, float startFadePercent, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> innerReplaceable, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> outerReplaceable, net.minecraft.world.level.levelgen.Heightmap.Types heightmap, net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> placeExceptIn) Creates an instance of aFadingDiskTagBiomeFeatureConfigrecord class.- Parameters:
useHeightMapAndNotCircular- the value for theuseHeightMapAndNotCircularrecord componentinnerState- the value for theinnerStaterecord componentouterState- the value for theouterStaterecord componentradius- the value for theradiusrecord componentplaceChance- the value for theplaceChancerecord componentinnerChance- the value for theinnerChancerecord componentinnerPercent- the value for theinnerPercentrecord componentstartFadePercent- the value for thestartFadePercentrecord componentinnerReplaceable- the value for theinnerReplaceablerecord componentouterReplaceable- the value for theouterReplaceablerecord componentheightmap- the value for theheightmaprecord componentplaceExceptIn- the value for theplaceExceptInrecord 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 '=='. -
useHeightMapAndNotCircular
public boolean useHeightMapAndNotCircular()Returns the value of theuseHeightMapAndNotCircularrecord component.- Returns:
- the value of the
useHeightMapAndNotCircularrecord 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
-
placeChance
public float placeChance()Returns the value of theplaceChancerecord component.- Returns:
- the value of the
placeChancerecord 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
-
startFadePercent
public float startFadePercent()Returns the value of thestartFadePercentrecord component.- Returns:
- the value of the
startFadePercentrecord component
-
innerReplaceable
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> innerReplaceable()Returns the value of theinnerReplaceablerecord component.- Returns:
- the value of the
innerReplaceablerecord component
-
outerReplaceable
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> outerReplaceable()Returns the value of theouterReplaceablerecord component.- Returns:
- the value of the
outerReplaceablerecord component
-
heightmap
public net.minecraft.world.level.levelgen.Heightmap.Types heightmap()Returns the value of theheightmaprecord component.- Returns:
- the value of the
heightmaprecord component
-
placeExceptIn
public net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> placeExceptIn()Returns the value of theplaceExceptInrecord component.- Returns:
- the value of the
placeExceptInrecord component
-