Record Class CattailFeatureConfig
java.lang.Object
java.lang.Record
net.frozenblock.wilderwild.worldgen.impl.features.config.CattailFeatureConfig
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record CattailFeatureConfig(net.minecraft.util.valueproviders.IntProvider width, net.minecraft.util.valueproviders.IntProvider placementAttempts, boolean onlyPlaceInWater, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> canBePlacedOn)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CattailFeatureConfig> Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionCattailFeatureConfig(net.minecraft.util.valueproviders.IntProvider width, net.minecraft.util.valueproviders.IntProvider placementAttempts, boolean onlyPlaceInWater, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> canBePlacedOn) Creates an instance of aCattailFeatureConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> Returns the value of thecanBePlacedOnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theonlyPlaceInWaterrecord component.net.minecraft.util.valueproviders.IntProviderReturns the value of theplacementAttemptsrecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.util.valueproviders.IntProviderwidth()Returns the value of thewidthrecord 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
-
CattailFeatureConfig
public CattailFeatureConfig(net.minecraft.util.valueproviders.IntProvider width, net.minecraft.util.valueproviders.IntProvider placementAttempts, boolean onlyPlaceInWater, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> canBePlacedOn) Creates an instance of aCattailFeatureConfigrecord class.- Parameters:
width- the value for thewidthrecord componentplacementAttempts- the value for theplacementAttemptsrecord componentonlyPlaceInWater- the value for theonlyPlaceInWaterrecord componentcanBePlacedOn- the value for thecanBePlacedOnrecord 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 '=='. -
width
public net.minecraft.util.valueproviders.IntProvider width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
placementAttempts
public net.minecraft.util.valueproviders.IntProvider placementAttempts()Returns the value of theplacementAttemptsrecord component.- Returns:
- the value of the
placementAttemptsrecord component
-
onlyPlaceInWater
public boolean onlyPlaceInWater()Returns the value of theonlyPlaceInWaterrecord component.- Returns:
- the value of the
onlyPlaceInWaterrecord component
-
canBePlacedOn
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> canBePlacedOn()Returns the value of thecanBePlacedOnrecord component.- Returns:
- the value of the
canBePlacedOnrecord component
-