Record Class ServerIdentity
java.lang.Object
java.lang.Record
com.iantapply.orchestra.platform.paper.ServerIdentity
- Record Components:
id- unique network server namegroups- server groups- server labels
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static ServerIdentityfrom(org.bukkit.configuration.file.FileConfiguration config) Loads a server identity from plugin configuration.groups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServerIdentity
-
-
Method Details
-
from
Loads a server identity from plugin configuration.- Parameters:
config- plugin configuration containing theserversection- Returns:
- immutable configured server identity
-
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). -
id
-
groups
-
tags
-