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

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<MarsRootsConfig>
     

    Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration

    NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 a MarsRootsConfig record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate
    Returns the value of the allowedTreePosition record component.
    int
    Returns the value of the allowedVerticalWaterForTree record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the hangingRootPlacementAttempts record component.
    int
    Returns the value of the hangingRootRadius record component.
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the hangingRootStateProvider record component.
    int
    Returns the value of the hangingRootsVerticalSpan record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the requiredVerticalSpaceForTree record component.
    int
    Returns the value of the rootColumnMaxHeight record component.
    int
    Returns the value of the rootPlacementAttempts record component.
    int
    Returns the value of the rootRadius record component.
    net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>
    Returns the value of the rootReplaceable record component.
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the rootStateProvider record component.
    final String
    Returns a string representation of this record class.
    net.minecraft.core.Holder<net.minecraft.world.level.levelgen.placement.PlacedFeature>
    Returns the value of the treeFeature record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration

    getFeatures
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<MarsRootsConfig> 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 a MarsRootsConfig record class.
      Parameters:
      treeFeature - the value for the treeFeature record component
      requiredVerticalSpaceForTree - the value for the requiredVerticalSpaceForTree record component
      rootRadius - the value for the rootRadius record component
      rootReplaceable - the value for the rootReplaceable record component
      rootStateProvider - the value for the rootStateProvider record component
      rootPlacementAttempts - the value for the rootPlacementAttempts record component
      rootColumnMaxHeight - the value for the rootColumnMaxHeight record component
      hangingRootRadius - the value for the hangingRootRadius record component
      hangingRootsVerticalSpan - the value for the hangingRootsVerticalSpan record component
      hangingRootStateProvider - the value for the hangingRootStateProvider record component
      hangingRootPlacementAttempts - the value for the hangingRootPlacementAttempts record component
      allowedVerticalWaterForTree - the value for the allowedVerticalWaterForTree record component
      allowedTreePosition - the value for the allowedTreePosition record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • treeFeature

      public net.minecraft.core.Holder<net.minecraft.world.level.levelgen.placement.PlacedFeature> treeFeature()
      Returns the value of the treeFeature record component.
      Returns:
      the value of the treeFeature record component
    • requiredVerticalSpaceForTree

      public int requiredVerticalSpaceForTree()
      Returns the value of the requiredVerticalSpaceForTree record component.
      Returns:
      the value of the requiredVerticalSpaceForTree record component
    • rootRadius

      public int rootRadius()
      Returns the value of the rootRadius record component.
      Returns:
      the value of the rootRadius record component
    • rootReplaceable

      public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> rootReplaceable()
      Returns the value of the rootReplaceable record component.
      Returns:
      the value of the rootReplaceable record component
    • rootStateProvider

      public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider rootStateProvider()
      Returns the value of the rootStateProvider record component.
      Returns:
      the value of the rootStateProvider record component
    • rootPlacementAttempts

      public int rootPlacementAttempts()
      Returns the value of the rootPlacementAttempts record component.
      Returns:
      the value of the rootPlacementAttempts record component
    • rootColumnMaxHeight

      public int rootColumnMaxHeight()
      Returns the value of the rootColumnMaxHeight record component.
      Returns:
      the value of the rootColumnMaxHeight record component
    • hangingRootRadius

      public int hangingRootRadius()
      Returns the value of the hangingRootRadius record component.
      Returns:
      the value of the hangingRootRadius record component
    • hangingRootsVerticalSpan

      public int hangingRootsVerticalSpan()
      Returns the value of the hangingRootsVerticalSpan record component.
      Returns:
      the value of the hangingRootsVerticalSpan record component
    • hangingRootStateProvider

      public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider hangingRootStateProvider()
      Returns the value of the hangingRootStateProvider record component.
      Returns:
      the value of the hangingRootStateProvider record component
    • hangingRootPlacementAttempts

      public int hangingRootPlacementAttempts()
      Returns the value of the hangingRootPlacementAttempts record component.
      Returns:
      the value of the hangingRootPlacementAttempts record component
    • allowedVerticalWaterForTree

      public int allowedVerticalWaterForTree()
      Returns the value of the allowedVerticalWaterForTree record component.
      Returns:
      the value of the allowedVerticalWaterForTree record component
    • allowedTreePosition

      public net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate allowedTreePosition()
      Returns the value of the allowedTreePosition record component.
      Returns:
      the value of the allowedTreePosition record component