Record Class ModifiableBiomeInfo.BiomeInfo
java.lang.Object
java.lang.Record
net.neoforged.neoforge.common.world.ModifiableBiomeInfo.BiomeInfo
- Record Components:
climateSettings- Weather and temperature settings.effects- Client-relevant effects for rendering and sound.generationSettings- Worldgen features and carvers.
- Enclosing class:
ModifiableBiomeInfo
public static record ModifiableBiomeInfo.BiomeInfo(Biome.ClimateSettings climateSettings, EnvironmentAttributeMap attributes, BiomeSpecialEffects effects, BiomeGenerationSettings generationSettings)
extends Record
Record containing raw biome data.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EnvironmentAttributeMapThe field for theattributesrecord component.private final Biome.ClimateSettingsThe field for theclimateSettingsrecord component.private final BiomeSpecialEffectsThe field for theeffectsrecord component.private final BiomeGenerationSettingsThe field for thegenerationSettingsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBiomeInfo(Biome.ClimateSettings climateSettings, EnvironmentAttributeMap attributes, BiomeSpecialEffects effects, BiomeGenerationSettings generationSettings) Creates an instance of aBiomeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.Returns the value of theclimateSettingsrecord component.effects()Returns the value of theeffectsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegenerationSettingsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
climateSettings
The field for theclimateSettingsrecord component. -
attributes
The field for theattributesrecord component. -
effects
The field for theeffectsrecord component. -
generationSettings
The field for thegenerationSettingsrecord component.
-
-
Constructor Details
-
BiomeInfo
public BiomeInfo(Biome.ClimateSettings climateSettings, EnvironmentAttributeMap attributes, BiomeSpecialEffects effects, BiomeGenerationSettings generationSettings) Creates an instance of aBiomeInforecord class.- Parameters:
climateSettings- the value for theclimateSettingsrecord componentattributes- the value for theattributesrecord componenteffects- the value for theeffectsrecord componentgenerationSettings- the value for thegenerationSettingsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
climateSettings
Returns the value of theclimateSettingsrecord component.- Returns:
- the value of the
climateSettingsrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
effects
-
generationSettings
Returns the value of thegenerationSettingsrecord component.- Returns:
- the value of the
generationSettingsrecord component
-