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 Vector2i origin, int minDistance, int maxDistance, @Nonnull ClimateSearch.Rule rule) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the color record component.
    static final String
     
     
    private final int
    The field for the maxDistance record component.
    private final int
    The field for the minDistance record component.
    private final Vector2i
    The field for the origin record component.
    private final String
    The field for the parent record component.
    private final int
    The field for the radius record component.
    private final ClimateSearch.Rule
    The field for the rule record component.
    private final String
    The field for the zone record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Entry(String zone, String parent, int color, int radius, 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.
    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 java.lang.Object

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

    • zone

      @Nonnull private final String zone
      The field for the zone record component.
    • parent

      @Nonnull private final String parent
      The field for the parent record component.
    • color

      private final int color
      The field for the color record component.
    • radius

      private final int radius
      The field for the radius record component.
    • origin

      @Nonnull private final Vector2i origin
      The field for the origin record component.
    • minDistance

      private final int minDistance
      The field for the minDistance record component.
    • maxDistance

      private final int maxDistance
      The field for the maxDistance record component.
    • rule

      @Nonnull private final ClimateSearch.Rule rule
      The field for the rule record component.
    • EMPTY_ARRAY

      public static final UniqueClimateGenerator.Entry[] EMPTY_ARRAY
    • DEFAULT_PARENT

      public static final String DEFAULT_PARENT
      See Also:
  • Constructor Details

    • Entry

      public Entry(@Nonnull String zone, @Nonnull String parent, int color, int radius, @Nonnull 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 '=='.
      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 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