Record Class RoofVinesConfig
java.lang.Object
java.lang.Record
com.lightning.northstar.world.features.configuration.RoofVinesConfig
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record RoofVinesConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider blockProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider glowProvider, net.minecraft.util.valueproviders.IntProvider size)
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
ConstructorsConstructorDescriptionRoofVinesConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider blockProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider glowProvider, net.minecraft.util.valueproviders.IntProvider size) Creates an instance of aRoofVinesConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of theblockProviderrecord 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.net.minecraft.util.valueproviders.IntProvidersize()Returns the value of thesizerecord component.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
-
RoofVinesConfig
public RoofVinesConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider blockProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider glowProvider, net.minecraft.util.valueproviders.IntProvider size) Creates an instance of aRoofVinesConfigrecord class.- Parameters:
blockProvider- the value for theblockProviderrecord componentglowProvider- the value for theglowProviderrecord componentsize- the value for thesizerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
blockProvider
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider blockProvider()Returns the value of theblockProviderrecord component.- Returns:
- the value of the
blockProviderrecord 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
-
size
public net.minecraft.util.valueproviders.IntProvider size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-