Record Class ZoneDiscoveryConfig
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.zone.ZoneDiscoveryConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ZoneDiscoveryConfigprivate 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 thesoundEventIdrecord component.private final StringThe field for thezonerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionZoneDiscoveryConfig(boolean display, String zone, String soundEventId, String icon, boolean major, float duration, float fadeInDuration, float fadeOutDuration) Creates an instance of aZoneDiscoveryConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandisplay()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.static ZoneDiscoveryConfigof(Boolean display, String zone, String soundEventId, String icon, Boolean major, Float duration, Float fadeInDuration, Float fadeOutDuration) Returns the value of thesoundEventIdrecord component.final StringtoString()Returns a string representation of this record class.zone()Returns the value of thezonerecord component.
-
Field Details
-
display
private final boolean displayThe field for thedisplayrecord component. -
zone
The field for thezonerecord component. -
soundEventId
The field for thesoundEventIdrecord 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. -
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 aZoneDiscoveryConfigrecord class.- Parameters:
display- the value for thedisplayrecord componentzone- the value for thezonerecord componentsoundEventId- the value for thesoundEventIdrecord 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
-
of
-
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 '=='. -
display
public boolean display()Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
zone
Returns the value of thezonerecord component.- Returns:
- the value of the
zonerecord component
-
soundEventId
Returns the value of thesoundEventIdrecord component.- Returns:
- the value of the
soundEventIdrecord 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
-