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(net.minecraft.world.level.biome.Biome.ClimateSettings climateSettings, net.minecraft.world.level.biome.BiomeSpecialEffects effects, net.minecraft.world.level.biome.BiomeGenerationSettings generationSettings, net.minecraft.world.level.biome.MobSpawnSettings mobSpawnSettings) extends Record
Record containing raw biome data.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final net.minecraft.world.level.biome.Biome.ClimateSettings
    The field for the climateSettings record component.
    private final net.minecraft.world.level.biome.BiomeSpecialEffects
    The field for the effects record component.
    private final net.minecraft.world.level.biome.BiomeGenerationSettings
    The field for the generationSettings record component.
    private final net.minecraft.world.level.biome.MobSpawnSettings
    The field for the mobSpawnSettings record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BiomeInfo(net.minecraft.world.level.biome.Biome.ClimateSettings climateSettings, net.minecraft.world.level.biome.BiomeSpecialEffects effects, net.minecraft.world.level.biome.BiomeGenerationSettings generationSettings, net.minecraft.world.level.biome.MobSpawnSettings mobSpawnSettings)
    Creates an instance of a BiomeInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.biome.Biome.ClimateSettings
    Returns the value of the climateSettings record component.
    net.minecraft.world.level.biome.BiomeSpecialEffects
    Returns the value of the effects record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraft.world.level.biome.BiomeGenerationSettings
    Returns the value of the generationSettings record component.
    final int
    Returns a hash code value for this object.
    net.minecraft.world.level.biome.MobSpawnSettings
    Returns the value of the mobSpawnSettings record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • climateSettings

      private final net.minecraft.world.level.biome.Biome.ClimateSettings climateSettings
      The field for the climateSettings record component.
    • effects

      private final net.minecraft.world.level.biome.BiomeSpecialEffects effects
      The field for the effects record component.
    • generationSettings

      private final net.minecraft.world.level.biome.BiomeGenerationSettings generationSettings
      The field for the generationSettings record component.
    • mobSpawnSettings

      private final net.minecraft.world.level.biome.MobSpawnSettings mobSpawnSettings
      The field for the mobSpawnSettings record component.
  • Constructor Details

    • BiomeInfo

      public BiomeInfo(net.minecraft.world.level.biome.Biome.ClimateSettings climateSettings, net.minecraft.world.level.biome.BiomeSpecialEffects effects, net.minecraft.world.level.biome.BiomeGenerationSettings generationSettings, net.minecraft.world.level.biome.MobSpawnSettings mobSpawnSettings)
      Creates an instance of a BiomeInfo record class.
      Parameters:
      climateSettings - the value for the climateSettings record component
      effects - the value for the effects record component
      generationSettings - the value for the generationSettings record component
      mobSpawnSettings - the value for the mobSpawnSettings record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • climateSettings

      public net.minecraft.world.level.biome.Biome.ClimateSettings climateSettings()
      Returns the value of the climateSettings record component.
      Returns:
      the value of the climateSettings record component
    • effects

      public net.minecraft.world.level.biome.BiomeSpecialEffects effects()
      Returns the value of the effects record component.
      Returns:
      the value of the effects record component
    • generationSettings

      public net.minecraft.world.level.biome.BiomeGenerationSettings generationSettings()
      Returns the value of the generationSettings record component.
      Returns:
      the value of the generationSettings record component
    • mobSpawnSettings

      public net.minecraft.world.level.biome.MobSpawnSettings mobSpawnSettings()
      Returns the value of the mobSpawnSettings record component.
      Returns:
      the value of the mobSpawnSettings record component