Record Class UniqueClimateGenerator.Entry

java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.climate.UniqueClimateGenerator.Entry
Enclosing class:
UniqueClimateGenerator

public static record UniqueClimateGenerator.Entry(@Nonnull String zone, @Nonnull String parent, int color, int radius, @Nonnull org.joml.Vector2i origin, int minDistance, int maxDistance, @Nonnull ClimateSearch.Rule rule) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Entry(String zone, String parent, int color, int radius, org.joml.Vector2i origin, int minDistance, int maxDistance, ClimateSearch.Rule rule)
    Creates an instance of a Entry record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the color record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the maxDistance record component.
    int
    Returns the value of the minDistance record component.
    org.joml.Vector2i
    Returns the value of the origin record component.
    Returns the value of the parent record component.
    int
    Returns the value of the radius record component.
    Returns the value of the rule record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the zone record component.

    Methods inherited from class Object

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

  • Constructor Details

    • Entry

      public Entry(@Nonnull String zone, @Nonnull String parent, int color, int radius, @Nonnull org.joml.Vector2i origin, int minDistance, int maxDistance, @Nonnull ClimateSearch.Rule rule)
      Creates an instance of a Entry record class.
      Parameters:
      zone - the value for the zone record component
      parent - the value for the parent record component
      color - the value for the color record component
      radius - the value for the radius record component
      origin - the value for the origin record component
      minDistance - the value for the minDistance record component
      maxDistance - the value for the maxDistance record component
      rule - the value for the rule 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • zone

      @Nonnull public String zone()
      Returns the value of the zone record component.
      Returns:
      the value of the zone record component
    • parent

      @Nonnull public String parent()
      Returns the value of the parent record component.
      Returns:
      the value of the parent record component
    • color

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

      public int radius()
      Returns the value of the radius record component.
      Returns:
      the value of the radius record component
    • origin

      @Nonnull public org.joml.Vector2i origin()
      Returns the value of the origin record component.
      Returns:
      the value of the origin record component
    • minDistance

      public int minDistance()
      Returns the value of the minDistance record component.
      Returns:
      the value of the minDistance record component
    • maxDistance

      public int maxDistance()
      Returns the value of the maxDistance record component.
      Returns:
      the value of the maxDistance record component
    • rule

      @Nonnull public ClimateSearch.Rule rule()
      Returns the value of the rule record component.
      Returns:
      the value of the rule record component