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 -
Field Summary
FieldsFields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionAlienTreeConfig(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 aAlienTreeConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.world.level.levelgen.feature.treedecorators.TreeDecorator> Returns the value of thedecoratorsrecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of thedirtProviderrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerReturns the value of thefoliagePlacerrecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of thefoliageProviderrecord component.booleanReturns the value of theforceDirtrecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of theglowProviderrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theignoreVinesrecord component.net.minecraft.world.level.levelgen.feature.featuresize.FeatureSizeReturns the value of theminimumSizerecord component.Optional<net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer> Returns the value of therootPlacerrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrunkPlacerrecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of thetrunkProviderrecord 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
-
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 aAlienTreeConfigrecord class.- Parameters:
trunkProvider- the value for thetrunkProviderrecord componentglowProvider- the value for theglowProviderrecord componenttrunkPlacer- the value for thetrunkPlacerrecord componentfoliageProvider- the value for thefoliageProviderrecord componentfoliagePlacer- the value for thefoliagePlacerrecord componentrootPlacer- the value for therootPlacerrecord componentdirtProvider- the value for thedirtProviderrecord componentminimumSize- the value for theminimumSizerecord componentdecorators- the value for thedecoratorsrecord componentignoreVines- the value for theignoreVinesrecord componentforceDirt- the value for theforceDirtrecord 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 '=='. -
trunkProvider
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider trunkProvider()Returns the value of thetrunkProviderrecord component.- Returns:
- the value of the
trunkProviderrecord component
-
glowProvider
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider glowProvider()Returns the value of theglowProviderrecord component.- Returns:
- the value of the
glowProviderrecord component
-
trunkPlacer
Returns the value of thetrunkPlacerrecord component.- Returns:
- the value of the
trunkPlacerrecord component
-
foliageProvider
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider foliageProvider()Returns the value of thefoliageProviderrecord component.- Returns:
- the value of the
foliageProviderrecord component
-
foliagePlacer
public net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer foliagePlacer()Returns the value of thefoliagePlacerrecord component.- Returns:
- the value of the
foliagePlacerrecord component
-
rootPlacer
Returns the value of therootPlacerrecord component.- Returns:
- the value of the
rootPlacerrecord component
-
dirtProvider
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider dirtProvider()Returns the value of thedirtProviderrecord component.- Returns:
- the value of the
dirtProviderrecord component
-
minimumSize
public net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize minimumSize()Returns the value of theminimumSizerecord component.- Returns:
- the value of the
minimumSizerecord component
-
decorators
Returns the value of thedecoratorsrecord component.- Returns:
- the value of the
decoratorsrecord component
-
ignoreVines
public boolean ignoreVines()Returns the value of theignoreVinesrecord component.- Returns:
- the value of the
ignoreVinesrecord component
-
forceDirt
public boolean forceDirt()Returns the value of theforceDirtrecord component.- Returns:
- the value of the
forceDirtrecord component
-