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 pathBlock, int radius, int noise, double multiplier, double minThresh, double maxThresh, boolean useY, boolean multiplyY, boolean is3D, boolean onlyExposed, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceable, float chance)
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 pathBlock, int radius, int noise, double multiplier, double minThresh, double maxThresh, boolean useY, boolean multiplyY, boolean is3D, boolean onlyExposed, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceable, float chance) Creates an instance of aPathTagFeatureConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatchance()Returns the value of thechancerecord component.final 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 themaxThreshrecord component.doubleReturns the value of theminThreshrecord component.doubleReturns the value of themultiplierrecord component.booleanReturns the value of themultiplyYrecord component.intnoise()Returns the value of thenoiserecord component.booleanReturns the value of theonlyExposedrecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of thepathBlockrecord component.intradius()Returns the value of theradiusrecord component.net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>Returns the value of thereplaceablerecord 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 pathBlock, int radius, int noise, double multiplier, double minThresh, double maxThresh, boolean useY, boolean multiplyY, boolean is3D, boolean onlyExposed, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceable, float chance) Creates an instance of aPathTagFeatureConfigrecord class.- Parameters:
pathBlock- the value for thepathBlockrecord componentradius- the value for theradiusrecord componentnoise- the value for thenoiserecord componentmultiplier- the value for themultiplierrecord componentminThresh- the value for theminThreshrecord componentmaxThresh- the value for themaxThreshrecord componentuseY- the value for theuseYrecord componentmultiplyY- the value for themultiplyYrecord componentis3D- the value for theis3Drecord componentonlyExposed- the value for theonlyExposedrecord componentreplaceable- the value for thereplaceablerecord componentchance- the value for thechancerecord 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 '=='. -
pathBlock
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider pathBlock()Returns the value of thepathBlockrecord component.- Returns:
- the value of the
pathBlockrecord 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
-
multiplier
public double multiplier()Returns the value of themultiplierrecord component.- Returns:
- the value of the
multiplierrecord component
-
minThresh
public double minThresh()Returns the value of theminThreshrecord component.- Returns:
- the value of the
minThreshrecord component
-
maxThresh
public double maxThresh()Returns the value of themaxThreshrecord component.- Returns:
- the value of the
maxThreshrecord component
-
useY
public boolean useY()Returns the value of theuseYrecord component.- Returns:
- the value of the
useYrecord component
-
multiplyY
public boolean multiplyY()Returns the value of themultiplyYrecord component.- Returns:
- the value of the
multiplyYrecord component
-
is3D
public boolean is3D()Returns the value of theis3Drecord component.- Returns:
- the value of the
is3Drecord component
-
onlyExposed
public boolean onlyExposed()Returns the value of theonlyExposedrecord component.- Returns:
- the value of the
onlyExposedrecord component
-
replaceable
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceable()Returns the value of thereplaceablerecord component.- Returns:
- the value of the
replaceablerecord component
-
chance
public float chance()Returns the value of thechancerecord component.- Returns:
- the value of the
chancerecord component
-