Record Class CurvingTunnelFeatureConfig
java.lang.Object
java.lang.Record
net.frozenblock.lib.worldgen.feature.api.features.config.CurvingTunnelFeatureConfig
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record CurvingTunnelFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider state, int radius, double minCurvature, double maxCurvature, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceableBlocks)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CurvingTunnelFeatureConfig> Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionCurvingTunnelFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider state, int radius, double minCurvature, double maxCurvature, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceableBlocks) Creates an instance of aCurvingTunnelFeatureConfigrecord 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.doubleReturns the value of themaxCurvaturerecord component.doubleReturns the value of theminCurvaturerecord component.intradius()Returns the value of theradiusrecord component.net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> Returns the value of thereplaceableBlocksrecord 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.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
-
CurvingTunnelFeatureConfig
public CurvingTunnelFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider state, int radius, double minCurvature, double maxCurvature, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceableBlocks) Creates an instance of aCurvingTunnelFeatureConfigrecord class.- Parameters:
state- the value for thestaterecord componentradius- the value for theradiusrecord componentminCurvature- the value for theminCurvaturerecord componentmaxCurvature- the value for themaxCurvaturerecord componentreplaceableBlocks- the value for thereplaceableBlocksrecord 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
-
minCurvature
public double minCurvature()Returns the value of theminCurvaturerecord component.- Returns:
- the value of the
minCurvaturerecord component
-
maxCurvature
public double maxCurvature()Returns the value of themaxCurvaturerecord component.- Returns:
- the value of the
maxCurvaturerecord 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
-