Record Class MarsRootsConfig
java.lang.Object
java.lang.Record
com.lightning.northstar.world.features.configuration.MarsRootsConfig
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record MarsRootsConfig(net.minecraft.core.Holder<net.minecraft.world.level.levelgen.placement.PlacedFeature> treeFeature, int requiredVerticalSpaceForTree, int rootRadius, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> rootReplaceable, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider rootStateProvider, int rootPlacementAttempts, int rootColumnMaxHeight, int hangingRootRadius, int hangingRootsVerticalSpan, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider hangingRootStateProvider, int hangingRootPlacementAttempts, int allowedVerticalWaterForTree, net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate allowedTreePosition)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Field Summary
FieldsFields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionMarsRootsConfig(net.minecraft.core.Holder<net.minecraft.world.level.levelgen.placement.PlacedFeature> treeFeature, int requiredVerticalSpaceForTree, int rootRadius, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> rootReplaceable, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider rootStateProvider, int rootPlacementAttempts, int rootColumnMaxHeight, int hangingRootRadius, int hangingRootsVerticalSpan, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider hangingRootStateProvider, int hangingRootPlacementAttempts, int allowedVerticalWaterForTree, net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate allowedTreePosition) Creates an instance of aMarsRootsConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.levelgen.blockpredicates.BlockPredicateReturns the value of theallowedTreePositionrecord component.intReturns the value of theallowedVerticalWaterForTreerecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thehangingRootPlacementAttemptsrecord component.intReturns the value of thehangingRootRadiusrecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of thehangingRootStateProviderrecord component.intReturns the value of thehangingRootsVerticalSpanrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of therequiredVerticalSpaceForTreerecord component.intReturns the value of therootColumnMaxHeightrecord component.intReturns the value of therootPlacementAttemptsrecord component.intReturns the value of therootRadiusrecord component.net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> Returns the value of therootReplaceablerecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of therootStateProviderrecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.core.Holder<net.minecraft.world.level.levelgen.placement.PlacedFeature> Returns the value of thetreeFeaturerecord 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
-
MarsRootsConfig
public MarsRootsConfig(net.minecraft.core.Holder<net.minecraft.world.level.levelgen.placement.PlacedFeature> treeFeature, int requiredVerticalSpaceForTree, int rootRadius, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> rootReplaceable, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider rootStateProvider, int rootPlacementAttempts, int rootColumnMaxHeight, int hangingRootRadius, int hangingRootsVerticalSpan, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider hangingRootStateProvider, int hangingRootPlacementAttempts, int allowedVerticalWaterForTree, net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate allowedTreePosition) Creates an instance of aMarsRootsConfigrecord class.- Parameters:
treeFeature- the value for thetreeFeaturerecord componentrequiredVerticalSpaceForTree- the value for therequiredVerticalSpaceForTreerecord componentrootRadius- the value for therootRadiusrecord componentrootReplaceable- the value for therootReplaceablerecord componentrootStateProvider- the value for therootStateProviderrecord componentrootPlacementAttempts- the value for therootPlacementAttemptsrecord componentrootColumnMaxHeight- the value for therootColumnMaxHeightrecord componenthangingRootRadius- the value for thehangingRootRadiusrecord componenthangingRootsVerticalSpan- the value for thehangingRootsVerticalSpanrecord componenthangingRootStateProvider- the value for thehangingRootStateProviderrecord componenthangingRootPlacementAttempts- the value for thehangingRootPlacementAttemptsrecord componentallowedVerticalWaterForTree- the value for theallowedVerticalWaterForTreerecord componentallowedTreePosition- the value for theallowedTreePositionrecord 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 '=='. -
treeFeature
public net.minecraft.core.Holder<net.minecraft.world.level.levelgen.placement.PlacedFeature> treeFeature()Returns the value of thetreeFeaturerecord component.- Returns:
- the value of the
treeFeaturerecord component
-
requiredVerticalSpaceForTree
public int requiredVerticalSpaceForTree()Returns the value of therequiredVerticalSpaceForTreerecord component.- Returns:
- the value of the
requiredVerticalSpaceForTreerecord component
-
rootRadius
public int rootRadius()Returns the value of therootRadiusrecord component.- Returns:
- the value of the
rootRadiusrecord component
-
rootReplaceable
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> rootReplaceable()Returns the value of therootReplaceablerecord component.- Returns:
- the value of the
rootReplaceablerecord component
-
rootStateProvider
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider rootStateProvider()Returns the value of therootStateProviderrecord component.- Returns:
- the value of the
rootStateProviderrecord component
-
rootPlacementAttempts
public int rootPlacementAttempts()Returns the value of therootPlacementAttemptsrecord component.- Returns:
- the value of the
rootPlacementAttemptsrecord component
-
rootColumnMaxHeight
public int rootColumnMaxHeight()Returns the value of therootColumnMaxHeightrecord component.- Returns:
- the value of the
rootColumnMaxHeightrecord component
-
hangingRootRadius
public int hangingRootRadius()Returns the value of thehangingRootRadiusrecord component.- Returns:
- the value of the
hangingRootRadiusrecord component
-
hangingRootsVerticalSpan
public int hangingRootsVerticalSpan()Returns the value of thehangingRootsVerticalSpanrecord component.- Returns:
- the value of the
hangingRootsVerticalSpanrecord component
-
hangingRootStateProvider
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider hangingRootStateProvider()Returns the value of thehangingRootStateProviderrecord component.- Returns:
- the value of the
hangingRootStateProviderrecord component
-
hangingRootPlacementAttempts
public int hangingRootPlacementAttempts()Returns the value of thehangingRootPlacementAttemptsrecord component.- Returns:
- the value of the
hangingRootPlacementAttemptsrecord component
-
allowedVerticalWaterForTree
public int allowedVerticalWaterForTree()Returns the value of theallowedVerticalWaterForTreerecord component.- Returns:
- the value of the
allowedVerticalWaterForTreerecord component
-
allowedTreePosition
public net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate allowedTreePosition()Returns the value of theallowedTreePositionrecord component.- Returns:
- the value of the
allowedTreePositionrecord component
-