Record Class FlickProtocol.ClientHello
java.lang.Object
java.lang.Record
net.flick.serverapi.protocol.FlickProtocol.ClientHello
- Enclosing class:
FlickProtocol
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallow()Returns the value of theallowrecord component.caps()Returns the value of thecapsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mc()Returns the value of themcrecord component.modules()Returns the value of themodulesrecord component.intproto()Returns the value of theprotorecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ClientHello
public ClientHello(int proto, String version, String mc, Set<String> modules, Set<String> caps, Map<String, Boolean> allow) Creates an instance of aClientHellorecord class.- Parameters:
proto- the value for theprotorecord componentversion- the value for theversionrecord componentmc- the value for themcrecord componentmodules- the value for themodulesrecord componentcaps- the value for thecapsrecord componentallow- the value for theallowrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
proto
public int proto()Returns the value of theprotorecord component.- Returns:
- the value of the
protorecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
mc
Returns the value of themcrecord component.- Returns:
- the value of the
mcrecord component
-
modules
-
caps
-
allow
-