Package net.minecraftforge.common.world
Record Class ModifiableBiomeInfo.BiomeInfo
java.lang.Object
java.lang.Record
net.minecraftforge.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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Biome.ClimateSettingsThe field for theclimateSettingsrecord component.private final BiomeSpecialEffectsThe field for theeffectsrecord component.private final BiomeGenerationSettingsThe field for thegenerationSettingsrecord component.private final MobSpawnSettingsThe field for themobSpawnSettingsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBiomeInfo(Biome.ClimateSettings climateSettings, BiomeSpecialEffects effects, BiomeGenerationSettings generationSettings, MobSpawnSettings mobSpawnSettings) Creates an instance of aBiomeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.Returns the value of themobSpawnSettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
climateSettings
The field for theclimateSettingsrecord component. -
effects
The field for theeffectsrecord component. -
generationSettings
The field for thegenerationSettingsrecord component. -
mobSpawnSettings
The field for themobSpawnSettingsrecord component.
-
-
Constructor Details
-
BiomeInfo
public BiomeInfo(Biome.ClimateSettings climateSettings, BiomeSpecialEffects effects, BiomeGenerationSettings generationSettings, MobSpawnSettings mobSpawnSettings) Creates an instance of aBiomeInforecord class.- Parameters:
climateSettings- the value for theclimateSettingsrecord componenteffects- the value for theeffectsrecord componentgenerationSettings- the value for thegenerationSettingsrecord componentmobSpawnSettings- the value for themobSpawnSettingsrecord 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 theclimateSettingsrecord component.- Returns:
- the value of the
climateSettingsrecord component
-
effects
Returns the value of theeffectsrecord component.- Returns:
- the value of the
effectsrecord component
-
generationSettings
Returns the value of thegenerationSettingsrecord component.- Returns:
- the value of the
generationSettingsrecord component
-
mobSpawnSettings
Returns the value of themobSpawnSettingsrecord component.- Returns:
- the value of the
mobSpawnSettingsrecord component
-