Record Class PathTagFeatureConfig
java.lang.Object
java.lang.Record
net.frozenblock.lib.worldgen.feature.api.features.config.PathTagFeatureConfig
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record PathTagFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider state, int radius, int noise, double noiseScale, double minThreshold, double maxThreshold, boolean useY, boolean scaleY, boolean is3D, boolean onlyPlaceWhenExposed, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceableBlocks, float placementChance)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PathTagFeatureConfig> Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionPathTagFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider state, int radius, int noise, double noiseScale, double minThreshold, double maxThreshold, boolean useY, boolean scaleY, boolean is3D, boolean onlyPlaceWhenExposed, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceableBlocks, float placementChance) Creates an instance of aPathTagFeatureConfigrecord 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.booleanis3D()Returns the value of theis3Drecord component.doubleReturns the value of themaxThresholdrecord component.doubleReturns the value of theminThresholdrecord component.intnoise()Returns the value of thenoiserecord component.doubleReturns the value of thenoiseScalerecord component.booleanReturns the value of theonlyPlaceWhenExposedrecord component.floatReturns the value of theplacementChancerecord component.intradius()Returns the value of theradiusrecord component.net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> Returns the value of thereplaceableBlocksrecord component.booleanscaleY()Returns the value of thescaleYrecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderstate()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.booleanuseY()Returns the value of theuseYrecord 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
-
PathTagFeatureConfig
public PathTagFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider state, int radius, int noise, double noiseScale, double minThreshold, double maxThreshold, boolean useY, boolean scaleY, boolean is3D, boolean onlyPlaceWhenExposed, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceableBlocks, float placementChance) Creates an instance of aPathTagFeatureConfigrecord class.- Parameters:
state- the value for thestaterecord componentradius- the value for theradiusrecord componentnoise- the value for thenoiserecord componentnoiseScale- the value for thenoiseScalerecord componentminThreshold- the value for theminThresholdrecord componentmaxThreshold- the value for themaxThresholdrecord componentuseY- the value for theuseYrecord componentscaleY- the value for thescaleYrecord componentis3D- the value for theis3Drecord componentonlyPlaceWhenExposed- the value for theonlyPlaceWhenExposedrecord componentreplaceableBlocks- the value for thereplaceableBlocksrecord componentplacementChance- the value for theplacementChancerecord 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 '=='. -
state
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider state()Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
radius
public int radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
noise
public int noise()Returns the value of thenoiserecord component.- Returns:
- the value of the
noiserecord component
-
noiseScale
public double noiseScale()Returns the value of thenoiseScalerecord component.- Returns:
- the value of the
noiseScalerecord component
-
minThreshold
public double minThreshold()Returns the value of theminThresholdrecord component.- Returns:
- the value of the
minThresholdrecord component
-
maxThreshold
public double maxThreshold()Returns the value of themaxThresholdrecord component.- Returns:
- the value of the
maxThresholdrecord component
-
useY
public boolean useY()Returns the value of theuseYrecord component.- Returns:
- the value of the
useYrecord component
-
scaleY
public boolean scaleY()Returns the value of thescaleYrecord component.- Returns:
- the value of the
scaleYrecord component
-
is3D
public boolean is3D()Returns the value of theis3Drecord component.- Returns:
- the value of the
is3Drecord component
-
onlyPlaceWhenExposed
public boolean onlyPlaceWhenExposed()Returns the value of theonlyPlaceWhenExposedrecord component.- Returns:
- the value of the
onlyPlaceWhenExposedrecord component
-
replaceableBlocks
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceableBlocks()Returns the value of thereplaceableBlocksrecord component.- Returns:
- the value of the
replaceableBlocksrecord component
-
placementChance
public float placementChance()Returns the value of theplacementChancerecord component.- Returns:
- the value of the
placementChancerecord component
-