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 SummaryNested Classes
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionBiomeInfo(Biome.ClimateSettings climateSettings, BiomeSpecialEffects effects, BiomeGenerationSettings generationSettings, MobSpawnSettings mobSpawnSettings) Creates an instance of aBiomeInforecord class.
- 
Method SummaryModifier 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- 
climateSettingsThe field for theclimateSettingsrecord component.
- 
effectsThe field for theeffectsrecord component.
- 
generationSettingsThe field for thegenerationSettingsrecord component.
- 
mobSpawnSettingsThe field for themobSpawnSettingsrecord component.
 
- 
- 
Constructor Details- 
BiomeInfopublic BiomeInfo(Biome.ClimateSettings climateSettings, BiomeSpecialEffects effects, BiomeGenerationSettings generationSettings, MobSpawnSettings mobSpawnSettings) Creates an instance of aBiomeInforecord class.- Parameters:
- climateSettings- the value for the- climateSettingsrecord component
- effects- the value for the- effectsrecord component
- generationSettings- the value for the- generationSettingsrecord component
- mobSpawnSettings- the value for the- mobSpawnSettingsrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
climateSettingsReturns the value of theclimateSettingsrecord component.- Returns:
- the value of the climateSettingsrecord component
 
- 
effectsReturns the value of theeffectsrecord component.- Returns:
- the value of the effectsrecord component
 
- 
generationSettingsReturns the value of thegenerationSettingsrecord component.- Returns:
- the value of the generationSettingsrecord component
 
- 
mobSpawnSettingsReturns the value of themobSpawnSettingsrecord component.- Returns:
- the value of the mobSpawnSettingsrecord component
 
 
-