Contents
Record Class WorldMapTracker.ZoneDiscoveryInfo
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.universe.world.WorldMapTracker.ZoneDiscoveryInfo
- Record Components:
zoneName- The name of the zone.regionName- The name of the region.display- Whether to display the discovery title and play the discovery sound.discoverySoundEventId- The sound event ID to play when discovering this zone, ornullif none.icon- The icon to display with the event title, ornullif none.major- Whether this zone is considered a major zone for discovery purposes.duration- The duration to display the event title for, in seconds.fadeInDuration- The fade-in duration for the event title, in seconds.fadeOutDuration- The fade-out duration for the event title, in seconds.
- 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
Contains zone discovery information passed from the world generator.
-
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.
-
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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
zoneName
-
regionName
Returns the value of theregionNamerecord component.- Returns:
- the value of the
regionNamerecord component
-
display
-
discoverySoundEventId
Returns the value of thediscoverySoundEventIdrecord component.- Returns:
- the value of the
discoverySoundEventIdrecord component
-
icon
-
major
-
duration
-
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
-