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
ConstructorDescriptionPortalData
(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 aPortalData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestination
record component.final boolean
Indicates whether some other object is "equal to" this one.flags()
Returns the value of theflags
record component.gateData()
Returns the value of thegateData
record component.final int
hashCode()
Returns a hash code value for this object.metaData()
Returns the value of themetaData
record component.name()
Returns the value of thename
record component.Returns the value of thenetworkName
record component.Returns the value of theownerUUID
record component.Returns the value of theportalType
record component.Returns the value of theserverName
record component.Returns the value of theserverUUID
record component.final String
toString()
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 aPortalData
record class.- Parameters:
gateData
- the value for thegateData
record componentname
- the value for thename
record componentnetworkName
- the value for thenetworkName
record componentdestination
- the value for thedestination
record componentflags
- the value for theflags
record componentownerUUID
- the value for theownerUUID
record componentserverUUID
- the value for theserverUUID
record componentserverName
- the value for theserverName
record componentportalType
- the value for theportalType
record componentmetaData
- the value for themetaData
record 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 thegateData
record component.- Returns:
- the value of the
gateData
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
networkName
Returns the value of thenetworkName
record component.- Returns:
- the value of the
networkName
record component
-
destination
Returns the value of thedestination
record component.- Returns:
- the value of the
destination
record component
-
flags
Returns the value of theflags
record component.- Returns:
- the value of the
flags
record component
-
ownerUUID
Returns the value of theownerUUID
record component.- Returns:
- the value of the
ownerUUID
record component
-
serverUUID
Returns the value of theserverUUID
record component.- Returns:
- the value of the
serverUUID
record component
-
serverName
Returns the value of theserverName
record component.- Returns:
- the value of the
serverName
record component
-
portalType
Returns the value of theportalType
record component.- Returns:
- the value of the
portalType
record component
-
metaData
Returns the value of themetaData
record component.- Returns:
- the value of the
metaData
record component
-