Record Class PortalData
java.lang.Object
java.lang.Record
org.sgrewritten.stargate.network.portal.portaldata.PortalData
- Record Components:
gateData- Data of the gate owned by this portalname- The name of the portal.networkName- The name of the network that the portal is associated with.destination- The name of the portal stored as this portal's destination.flags- A set containing all the flags associated with this portal.ownerUUID- The UUID of the player who owns this portal.serverUUID- The UUID of the server this portal was constructed on.serverName- The name of the server this portal was constructed on.portalType- The type associated with this portal.metaData- The metadata on this portal
public record PortalData(GateData gateData, String name, String networkName, String destination, Set<PortalFlag> flags, UUID ownerUUID, String serverUUID, String serverName, StorageType portalType, String metaData)
extends Record
The data contained within a Portal.
-
Constructor Summary
ConstructorsConstructorDescriptionPortalData(GateData gateData, String name, String networkName, String destination, Set<PortalFlag> flags, UUID ownerUUID, String serverUUID, String serverName, StorageType portalType, String metaData) Creates an instance of aPortalDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestinationrecord component.final booleanIndicates whether some other object is "equal to" this one.flags()Returns the value of theflagsrecord component.gateData()Returns the value of thegateDatarecord component.final inthashCode()Returns a hash code value for this object.metaData()Returns the value of themetaDatarecord component.name()Returns the value of thenamerecord component.Returns the value of thenetworkNamerecord component.Returns the value of theownerUUIDrecord component.Returns the value of theportalTyperecord component.Returns the value of theserverNamerecord component.Returns the value of theserverUUIDrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PortalData
public PortalData(GateData gateData, String name, String networkName, String destination, Set<PortalFlag> flags, UUID ownerUUID, String serverUUID, String serverName, StorageType portalType, String metaData) Creates an instance of aPortalDatarecord class.- Parameters:
gateData- the value for thegateDatarecord componentname- the value for thenamerecord componentnetworkName- the value for thenetworkNamerecord componentdestination- the value for thedestinationrecord componentflags- the value for theflagsrecord componentownerUUID- the value for theownerUUIDrecord componentserverUUID- the value for theserverUUIDrecord componentserverName- the value for theserverNamerecord componentportalType- the value for theportalTyperecord componentmetaData- the value for themetaDatarecord component
-
-
Method Details
-
flagString
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
gateData
Returns the value of thegateDatarecord component.- Returns:
- the value of the
gateDatarecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
networkName
Returns the value of thenetworkNamerecord component.- Returns:
- the value of the
networkNamerecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
ownerUUID
Returns the value of theownerUUIDrecord component.- Returns:
- the value of the
ownerUUIDrecord component
-
serverUUID
Returns the value of theserverUUIDrecord component.- Returns:
- the value of the
serverUUIDrecord component
-
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
portalType
Returns the value of theportalTyperecord component.- Returns:
- the value of the
portalTyperecord component
-
metaData
Returns the value of themetaDatarecord component.- Returns:
- the value of the
metaDatarecord component
-