Contents
Record Class PortalInstanceLinks.Link
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.portals.PortalInstanceLinks.Link
- Enclosing class:
PortalInstanceLinks
public static record PortalInstanceLinks.Link(@Nonnull UUID destinationWorldUuid, @Nonnull PortalDeviceConfig config)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLink(UUID destinationWorldUuid, PortalDeviceConfig config) Creates an instance of aLinkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.Returns the value of thedestinationWorldUuidrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Link
Creates an instance of aLinkrecord class.- Parameters:
destinationWorldUuid- the value for thedestinationWorldUuidrecord componentconfig- the value for theconfigrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
destinationWorldUuid
Returns the value of thedestinationWorldUuidrecord component.- Returns:
- the value of the
destinationWorldUuidrecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-