Record Class WorldMapTracker.ZoneDiscoveryInfo

java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.universe.world.WorldMapTracker.ZoneDiscoveryInfo
Enclosing class:
WorldMapTracker

public static record WorldMapTracker.ZoneDiscoveryInfo(@Nonnull String zoneName, @Nonnull String regionName, boolean display, @Nullable String discoverySoundEventId, @Nullable String icon, boolean major, float duration, float fadeInDuration, float fadeOutDuration) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
    The field for the discoverySoundEventId record component.
    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 regionName record component.
    private final String
    The field for the zoneName record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ZoneDiscoveryInfo(String zoneName, String regionName, boolean display, String discoverySoundEventId, String icon, boolean major, float duration, float fadeInDuration, float fadeOutDuration)
    Creates an instance of a ZoneDiscoveryInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the value of the discoverySoundEventId record component.
    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.
    Returns the value of the regionName record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the zoneName record component.

    Methods inherited from class java.lang.Object

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

    • zoneName

      @Nonnull private final String zoneName
      The field for the zoneName record component.
    • regionName

      @Nonnull private final String regionName
      The field for the regionName record component.
    • display

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

      @Nullable private final String discoverySoundEventId
      The field for the discoverySoundEventId 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.
  • Constructor Details

    • ZoneDiscoveryInfo

      public ZoneDiscoveryInfo(@Nonnull String zoneName, @Nonnull String regionName, boolean display, @Nullable String discoverySoundEventId, @Nullable String icon, boolean major, float duration, float fadeInDuration, float fadeOutDuration)
      Creates an instance of a ZoneDiscoveryInfo record class.
      Parameters:
      zoneName - the value for the zoneName record component
      regionName - the value for the regionName record component
      display - the value for the display record component
      discoverySoundEventId - the value for the discoverySoundEventId 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

    • clone

      @Nonnull public WorldMapTracker.ZoneDiscoveryInfo clone()
      Overrides:
      clone in class Object
    • 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.
    • zoneName

      @Nonnull public String zoneName()
      Returns the value of the zoneName record component.
      Returns:
      the value of the zoneName record component
    • regionName

      @Nonnull public String regionName()
      Returns the value of the regionName record component.
      Returns:
      the value of the regionName record component
    • display

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

      @Nullable public String discoverySoundEventId()
      Returns the value of the discoverySoundEventId record component.
      Returns:
      the value of the discoverySoundEventId 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