Record Class BedrockLanSession
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.lan.BedrockLanSession
- All Implemented Interfaces:
com.viaversion.viaversion.api.connection.StorableObject
public record BedrockLanSession(BedrockLanAddress address)
extends Record
implements com.viaversion.viaversion.api.connection.StorableObject
Per-connection metadata used by signaling, login, and client data.
-
Constructor Summary
ConstructorsConstructorDescriptionBedrockLanSession(BedrockLanAddress address) Creates an instance of aBedrockLanSessionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringnonce()final StringtoString()Returns a string representation of this record class.Methods inherited from interface com.viaversion.viaversion.api.connection.StorableObject
onRemove
-
Constructor Details
-
BedrockLanSession
Creates an instance of aBedrockLanSessionrecord class.- Parameters:
address- the value for theaddressrecord component
-
-
Method Details
-
nonce
-
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). -
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-