Record Class Seasons.Season

java.lang.Object
java.lang.Record
com.github.aecsocket.demeter.paper.feature.Seasons.Season
All Implemented Interfaces:
Renderable
Enclosing class:
Seasons

@ConfigSerializable public static record Seasons.Season(String name, int weight, Vector3 color, @Nullable Seasons.ColorModifier foliageColor, @Nullable Seasons.ColorModifier grassColor, @Nullable Seasons.ColorModifier fogColor, @Nullable Seasons.ColorModifier skyColor, @Nullable Seasons.ColorModifier waterColor, @Nullable Seasons.ColorModifier waterFogColor, @Nullable Precipitation precipitation) extends Record implements Renderable
  • Field Details

  • Constructor Details

    • Season

      public Season(String name, int weight, Vector3 color, @Nullable Seasons.ColorModifier foliageColor, @Nullable Seasons.ColorModifier grassColor, @Nullable Seasons.ColorModifier fogColor, @Nullable Seasons.ColorModifier skyColor, @Nullable Seasons.ColorModifier waterColor, @Nullable Seasons.ColorModifier waterFogColor, @Nullable Precipitation precipitation)
      Creates an instance of a Season record class.
      Parameters:
      name - the value for the name record component
      weight - the value for the weight record component
      color - the value for the color record component
      foliageColor - the value for the foliageColor record component
      grassColor - the value for the grassColor record component
      fogColor - the value for the fogColor record component
      skyColor - the value for the skyColor record component
      waterColor - the value for the waterColor record component
      waterFogColor - the value for the waterFogColor record component
      precipitation - the value for the precipitation record component
  • Method Details

    • render

      public Component render(I18N i18n, Locale locale)
      Specified by:
      render in interface Renderable
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • weight

      public int weight()
      Returns the value of the weight record component.
      Returns:
      the value of the weight record component
    • color

      public Vector3 color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component
    • foliageColor

      public @Nullable Seasons.ColorModifier foliageColor()
      Returns the value of the foliageColor record component.
      Returns:
      the value of the foliageColor record component
    • grassColor

      public @Nullable Seasons.ColorModifier grassColor()
      Returns the value of the grassColor record component.
      Returns:
      the value of the grassColor record component
    • fogColor

      public @Nullable Seasons.ColorModifier fogColor()
      Returns the value of the fogColor record component.
      Returns:
      the value of the fogColor record component
    • skyColor

      public @Nullable Seasons.ColorModifier skyColor()
      Returns the value of the skyColor record component.
      Returns:
      the value of the skyColor record component
    • waterColor

      public @Nullable Seasons.ColorModifier waterColor()
      Returns the value of the waterColor record component.
      Returns:
      the value of the waterColor record component
    • waterFogColor

      Returns the value of the waterFogColor record component.
      Returns:
      the value of the waterFogColor record component
    • precipitation

      public @Nullable Precipitation precipitation()
      Returns the value of the precipitation record component.
      Returns:
      the value of the precipitation record component