Record Class ZoneDiscoveryConfig

java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.zone.ZoneDiscoveryConfig

public record ZoneDiscoveryConfig(boolean display, String zone, @Nullable String soundEventId, @Nullable String icon, boolean major, float duration, float fadeInDuration, float fadeOutDuration) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ZoneDiscoveryConfig
     
    private final boolean
    The field for the display record component.
    private final float
    The field for the duration record component.
    private final float
    The field for the fadeInDuration record component.
    private final float
    The field for the fadeOutDuration record component.
    private final String
    The field for the icon record component.
    private final boolean
    The field for the major record component.
    private final String
    The field for the soundEventId record component.
    private final String
    The field for the zone record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ZoneDiscoveryConfig(boolean display, String zone, String soundEventId, String icon, boolean major, float duration, float fadeInDuration, float fadeOutDuration)
    Creates an instance of a ZoneDiscoveryConfig record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the display record component.
    float
    Returns the value of the duration record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    float
    Returns the value of the fadeInDuration record component.
    float
    Returns the value of the fadeOutDuration record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the icon record component.
    boolean
    Returns the value of the major record component.
    of(Boolean display, String zone, String soundEventId, String icon, Boolean major, Float duration, Float fadeInDuration, Float fadeOutDuration)
     
    Returns the value of the soundEventId 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

    • display

      private final boolean display
      The field for the display record component.
    • zone

      private final String zone
      The field for the zone record component.
    • soundEventId

      @Nullable private final String soundEventId
      The field for the soundEventId record component.
    • icon

      @Nullable private final String icon
      The field for the icon record component.
    • major

      private final boolean major
      The field for the major record component.
    • duration

      private final float duration
      The field for the duration record component.
    • fadeInDuration

      private final float fadeInDuration
      The field for the fadeInDuration record component.
    • fadeOutDuration

      private final float fadeOutDuration
      The field for the fadeOutDuration record component.
    • DEFAULT

      @Nonnull public static final ZoneDiscoveryConfig DEFAULT
  • Constructor Details

    • ZoneDiscoveryConfig

      public ZoneDiscoveryConfig(boolean display, String zone, @Nullable String soundEventId, @Nullable String icon, boolean major, float duration, float fadeInDuration, float fadeOutDuration)
      Creates an instance of a ZoneDiscoveryConfig record class.
      Parameters:
      display - the value for the display record component
      zone - the value for the zone record component
      soundEventId - the value for the soundEventId record component
      icon - the value for the icon record component
      major - the value for the major record component
      duration - the value for the duration record component
      fadeInDuration - the value for the fadeInDuration record component
      fadeOutDuration - the value for the fadeOutDuration record component
  • Method Details

    • of

      @Nonnull public static ZoneDiscoveryConfig of(@Nullable Boolean display, @Nullable String zone, @Nullable String soundEventId, @Nullable String icon, @Nullable Boolean major, @Nullable Float duration, @Nullable Float fadeInDuration, @Nullable Float fadeOutDuration)
    • 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.
    • display

      public boolean display()
      Returns the value of the display record component.
      Returns:
      the value of the display record component
    • zone

      public String zone()
      Returns the value of the zone record component.
      Returns:
      the value of the zone record component
    • soundEventId

      @Nullable public String soundEventId()
      Returns the value of the soundEventId record component.
      Returns:
      the value of the soundEventId record component
    • icon

      @Nullable public String icon()
      Returns the value of the icon record component.
      Returns:
      the value of the icon record component
    • major

      public boolean major()
      Returns the value of the major record component.
      Returns:
      the value of the major record component
    • duration

      public float duration()
      Returns the value of the duration record component.
      Returns:
      the value of the duration record component
    • fadeInDuration

      public float fadeInDuration()
      Returns the value of the fadeInDuration record component.
      Returns:
      the value of the fadeInDuration record component
    • fadeOutDuration

      public float fadeOutDuration()
      Returns the value of the fadeOutDuration record component.
      Returns:
      the value of the fadeOutDuration record component