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.mobSpawnSettings
- Mob spawn settings.
- Enclosing class:
ModifiableBiomeInfo
public static record ModifiableBiomeInfo.BiomeInfo(Biome.ClimateSettings climateSettings, BiomeSpecialEffects effects, BiomeGenerationSettings generationSettings, MobSpawnSettings mobSpawnSettings)
extends Record
Record containing raw biome data.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Biome.ClimateSettings
The field for theclimateSettings
record component.private final BiomeSpecialEffects
The field for theeffects
record component.private final BiomeGenerationSettings
The field for thegenerationSettings
record component.private final MobSpawnSettings
The field for themobSpawnSettings
record component. -
Constructor Summary
ConstructorDescriptionBiomeInfo
(Biome.ClimateSettings climateSettings, BiomeSpecialEffects effects, BiomeGenerationSettings generationSettings, MobSpawnSettings mobSpawnSettings) Creates an instance of aBiomeInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclimateSettings
record component.effects()
Returns the value of theeffects
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegenerationSettings
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of themobSpawnSettings
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
climateSettings
The field for theclimateSettings
record component. -
effects
The field for theeffects
record component. -
generationSettings
The field for thegenerationSettings
record component. -
mobSpawnSettings
The field for themobSpawnSettings
record component.
-
-
Constructor Details
-
BiomeInfo
public BiomeInfo(Biome.ClimateSettings climateSettings, BiomeSpecialEffects effects, BiomeGenerationSettings generationSettings, MobSpawnSettings mobSpawnSettings) Creates an instance of aBiomeInfo
record class.- Parameters:
climateSettings
- the value for theclimateSettings
record componenteffects
- the value for theeffects
record componentgenerationSettings
- the value for thegenerationSettings
record componentmobSpawnSettings
- the value for themobSpawnSettings
record 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)
. -
climateSettings
Returns the value of theclimateSettings
record component.- Returns:
- the value of the
climateSettings
record component
-
effects
Returns the value of theeffects
record component.- Returns:
- the value of the
effects
record component
-
generationSettings
Returns the value of thegenerationSettings
record component.- Returns:
- the value of the
generationSettings
record component
-
mobSpawnSettings
Returns the value of themobSpawnSettings
record component.- Returns:
- the value of the
mobSpawnSettings
record component
-