Record Class AlienTreeConfig

java.lang.Object
java.lang.Record
com.lightning.northstar.world.features.configuration.AlienTreeConfig
All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration

public record AlienTreeConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider trunkProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider glowProvider, ArgyreTrunkPlacer trunkPlacer, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider foliageProvider, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer foliagePlacer, Optional<net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer> rootPlacer, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider dirtProvider, net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize minimumSize, List<net.minecraft.world.level.levelgen.feature.treedecorators.TreeDecorator> decorators, boolean ignoreVines, boolean forceDirt) extends Record implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

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

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

    NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    AlienTreeConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider trunkProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider glowProvider, ArgyreTrunkPlacer trunkPlacer, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider foliageProvider, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer foliagePlacer, Optional<net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer> rootPlacer, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider dirtProvider, net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize minimumSize, List<net.minecraft.world.level.levelgen.feature.treedecorators.TreeDecorator> decorators, boolean ignoreVines, boolean forceDirt)
    Creates an instance of a AlienTreeConfig record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<net.minecraft.world.level.levelgen.feature.treedecorators.TreeDecorator>
    Returns the value of the decorators record component.
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the dirtProvider record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
    Returns the value of the foliagePlacer record component.
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the foliageProvider record component.
    boolean
    Returns the value of the forceDirt record component.
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the glowProvider record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the ignoreVines record component.
    net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize
    Returns the value of the minimumSize record component.
    Optional<net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer>
    Returns the value of the rootPlacer record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the trunkPlacer record component.
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the trunkProvider 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<AlienTreeConfig> CODEC
  • Constructor Details

    • AlienTreeConfig

      public AlienTreeConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider trunkProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider glowProvider, ArgyreTrunkPlacer trunkPlacer, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider foliageProvider, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer foliagePlacer, Optional<net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer> rootPlacer, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider dirtProvider, net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize minimumSize, List<net.minecraft.world.level.levelgen.feature.treedecorators.TreeDecorator> decorators, boolean ignoreVines, boolean forceDirt)
      Creates an instance of a AlienTreeConfig record class.
      Parameters:
      trunkProvider - the value for the trunkProvider record component
      glowProvider - the value for the glowProvider record component
      trunkPlacer - the value for the trunkPlacer record component
      foliageProvider - the value for the foliageProvider record component
      foliagePlacer - the value for the foliagePlacer record component
      rootPlacer - the value for the rootPlacer record component
      dirtProvider - the value for the dirtProvider record component
      minimumSize - the value for the minimumSize record component
      decorators - the value for the decorators record component
      ignoreVines - the value for the ignoreVines record component
      forceDirt - the value for the forceDirt 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.
    • trunkProvider

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

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

      public ArgyreTrunkPlacer trunkPlacer()
      Returns the value of the trunkPlacer record component.
      Returns:
      the value of the trunkPlacer record component
    • foliageProvider

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

      public net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer foliagePlacer()
      Returns the value of the foliagePlacer record component.
      Returns:
      the value of the foliagePlacer record component
    • rootPlacer

      public Optional<net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer> rootPlacer()
      Returns the value of the rootPlacer record component.
      Returns:
      the value of the rootPlacer record component
    • dirtProvider

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

      public net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize minimumSize()
      Returns the value of the minimumSize record component.
      Returns:
      the value of the minimumSize record component
    • decorators

      public List<net.minecraft.world.level.levelgen.feature.treedecorators.TreeDecorator> decorators()
      Returns the value of the decorators record component.
      Returns:
      the value of the decorators record component
    • ignoreVines

      public boolean ignoreVines()
      Returns the value of the ignoreVines record component.
      Returns:
      the value of the ignoreVines record component
    • forceDirt

      public boolean forceDirt()
      Returns the value of the forceDirt record component.
      Returns:
      the value of the forceDirt record component