Package vazkii.botania.common.world
Record Class MysticalFlowerConfig
java.lang.Object
java.lang.Record
vazkii.botania.common.world.MysticalFlowerConfig
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record MysticalFlowerConfig(float tallChance, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toPlace)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MysticalFlowerConfig> Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionMysticalFlowerConfig(float tallChance, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toPlace) Creates an instance of aMysticalFlowerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thetallChancerecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvidertoPlace()Returns the value of thetoPlacerecord 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
-
MysticalFlowerConfig
public MysticalFlowerConfig(float tallChance, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toPlace) Creates an instance of aMysticalFlowerConfigrecord class.- Parameters:
tallChance- the value for thetallChancerecord componenttoPlace- the value for thetoPlacerecord 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 '=='. -
tallChance
public float tallChance()Returns the value of thetallChancerecord component.- Returns:
- the value of the
tallChancerecord component
-
toPlace
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider toPlace()Returns the value of thetoPlacerecord component.- Returns:
- the value of the
toPlacerecord component
-