Record Class WorldMapTracker.ZoneDiscoveryInfo
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.universe.world.WorldMapTracker.ZoneDiscoveryInfo
- Enclosing class:
WorldMapTracker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thediscoverySoundEventIdrecord component.private final booleanThe field for thedisplayrecord component.private final floatThe field for thedurationrecord component.private final floatThe field for thefadeInDurationrecord component.private final floatThe field for thefadeOutDurationrecord component.private final StringThe field for theiconrecord component.private final booleanThe field for themajorrecord component.private final StringThe field for theregionNamerecord component.private final StringThe field for thezoneNamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionZoneDiscoveryInfo(String zoneName, String regionName, boolean display, String discoverySoundEventId, String icon, boolean major, float duration, float fadeInDuration, float fadeOutDuration) Creates an instance of aZoneDiscoveryInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns the value of thediscoverySoundEventIdrecord component.booleandisplay()Returns the value of thedisplayrecord component.floatduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of thefadeInDurationrecord component.floatReturns the value of thefadeOutDurationrecord component.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.booleanmajor()Returns the value of themajorrecord component.Returns the value of theregionNamerecord component.final StringtoString()Returns a string representation of this record class.zoneName()Returns the value of thezoneNamerecord component.
-
Field Details
-
zoneName
The field for thezoneNamerecord component. -
regionName
The field for theregionNamerecord component. -
display
private final boolean displayThe field for thedisplayrecord component. -
discoverySoundEventId
The field for thediscoverySoundEventIdrecord component. -
icon
The field for theiconrecord component. -
major
private final boolean majorThe field for themajorrecord component. -
duration
private final float durationThe field for thedurationrecord component. -
fadeInDuration
private final float fadeInDurationThe field for thefadeInDurationrecord component. -
fadeOutDuration
private final float fadeOutDurationThe field for thefadeOutDurationrecord 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 aZoneDiscoveryInforecord class.- Parameters:
zoneName- the value for thezoneNamerecord componentregionName- the value for theregionNamerecord componentdisplay- the value for thedisplayrecord componentdiscoverySoundEventId- the value for thediscoverySoundEventIdrecord componenticon- the value for theiconrecord componentmajor- the value for themajorrecord componentduration- the value for thedurationrecord componentfadeInDuration- the value for thefadeInDurationrecord componentfadeOutDuration- the value for thefadeOutDurationrecord component
-
-
Method Details
-
clone
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
zoneName
Returns the value of thezoneNamerecord component.- Returns:
- the value of the
zoneNamerecord component
-
regionName
Returns the value of theregionNamerecord component.- Returns:
- the value of the
regionNamerecord component
-
display
public boolean display()Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
discoverySoundEventId
Returns the value of thediscoverySoundEventIdrecord component.- Returns:
- the value of the
discoverySoundEventIdrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
major
public boolean major()Returns the value of themajorrecord component.- Returns:
- the value of the
majorrecord component
-
duration
public float duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
fadeInDuration
public float fadeInDuration()Returns the value of thefadeInDurationrecord component.- Returns:
- the value of the
fadeInDurationrecord component
-
fadeOutDuration
public float fadeOutDuration()Returns the value of thefadeOutDurationrecord component.- Returns:
- the value of the
fadeOutDurationrecord component
-