Record Class GlowstoneBranchConfig
java.lang.Object
java.lang.Record
com.lightning.northstar.world.gen.feature.configuration.GlowstoneBranchConfig
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record GlowstoneBranchConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider glowProvider, int attempts, boolean downwards)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<GlowstoneBranchConfig> Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionGlowstoneBranchConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider glowProvider, int attempts, boolean downwards) Creates an instance of aGlowstoneBranchConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempts()Returns the value of theattemptsrecord component.booleanReturns the value of thedownwardsrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of theglowProviderrecord component.final inthashCode()Returns a hash code value for this object.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
-
GlowstoneBranchConfig
public GlowstoneBranchConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider glowProvider, int attempts, boolean downwards) Creates an instance of aGlowstoneBranchConfigrecord class.- Parameters:
glowProvider- the value for theglowProviderrecord componentattempts- the value for theattemptsrecord componentdownwards- the value for thedownwardsrecord 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 '=='. -
glowProvider
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider glowProvider()Returns the value of theglowProviderrecord component.- Returns:
- the value of the
glowProviderrecord component
-
attempts
public int attempts()Returns the value of theattemptsrecord component.- Returns:
- the value of the
attemptsrecord component
-
downwards
public boolean downwards()Returns the value of thedownwardsrecord component.- Returns:
- the value of the
downwardsrecord component
-