Record Class BiomeEffects

java.lang.Object
java.lang.Record
net.minecraft.world.biome.BiomeEffects
Record Components:
waterColor -
foliageColor -
dryFoliageColor -
grassColor -
grassColorModifier -

public record BiomeEffects(int waterColor, Optional<Integer> foliageColor, Optional<Integer> dryFoliageColor, Optional<Integer> grassColor, BiomeEffects.GrassColorModifier grassColorModifier) extends Record
Mappings:
Namespace Name
named net/minecraft/world/biome/BiomeEffects
intermediary net/minecraft/class_4763
official dwm
named waterColor
intermediary comp_5169
official b
named foliageColor
intermediary comp_5170
official c
named dryFoliageColor
intermediary comp_5171
official d
named grassColor
intermediary comp_5172
official e
named grassColorModifier
intermediary comp_5173
official f
  • Field Details

    • waterColor

      private final int waterColor
      The field for the waterColor record component.
    • foliageColor

      private final Optional<Integer> foliageColor
      The field for the foliageColor record component.
    • dryFoliageColor

      private final Optional<Integer> dryFoliageColor
      The field for the dryFoliageColor record component.
    • grassColor

      private final Optional<Integer> grassColor
      The field for the grassColor record component.
    • grassColorModifier

      private final BiomeEffects.GrassColorModifier grassColorModifier
      The field for the grassColorModifier record component.
    • CODEC

      public static final com.mojang.serialization.Codec<BiomeEffects> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/biome/BiomeEffects;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_24714 Lnet/minecraft/class_4763;field_24714:Lcom/mojang/serialization/Codec;
      official a Ldwm;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • 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 object)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • waterColor

      public int waterColor()
      Returns the value of the waterColor record component.
      Returns:
      the value of the waterColor record component
    • foliageColor

      public Optional<Integer> foliageColor()
      Returns the value of the foliageColor record component.
      Returns:
      the value of the foliageColor record component
    • dryFoliageColor

      public Optional<Integer> dryFoliageColor()
      Returns the value of the dryFoliageColor record component.
      Returns:
      the value of the dryFoliageColor record component
    • grassColor

      public Optional<Integer> grassColor()
      Returns the value of the grassColor record component.
      Returns:
      the value of the grassColor record component
    • grassColorModifier

      public BiomeEffects.GrassColorModifier grassColorModifier()
      Returns the value of the grassColorModifier record component.
      Returns:
      the value of the grassColorModifier record component