Record Class NonWhitelistedPlayerConnectedEvent
java.lang.Object
java.lang.Record
com.zenith.event.player.NonWhitelistedPlayerConnectedEvent
public record NonWhitelistedPlayerConnectedEvent(GameProfile gameProfile, SocketAddress remoteAddress)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNonWhitelistedPlayerConnectedEvent(GameProfile gameProfile, SocketAddress remoteAddress) Creates an instance of aNonWhitelistedPlayerConnectedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegameProfilerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theremoteAddressrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NonWhitelistedPlayerConnectedEvent
Creates an instance of aNonWhitelistedPlayerConnectedEventrecord class.- Parameters:
gameProfile- the value for thegameProfilerecord componentremoteAddress- the value for theremoteAddressrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
gameProfile
Returns the value of thegameProfilerecord component.- Returns:
- the value of the
gameProfilerecord component
-
remoteAddress
Returns the value of theremoteAddressrecord component.- Returns:
- the value of the
remoteAddressrecord component
-