Record Class BlacklistedPlayerConnectedEvent
java.lang.Object
java.lang.Record
com.zenith.event.player.BlacklistedPlayerConnectedEvent
public record BlacklistedPlayerConnectedEvent(GameProfile gameProfile, SocketAddress remoteAddress)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlacklistedPlayerConnectedEvent(GameProfile gameProfile, SocketAddress remoteAddress) Creates an instance of aBlacklistedPlayerConnectedEventrecord 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
-
BlacklistedPlayerConnectedEvent
Creates an instance of aBlacklistedPlayerConnectedEventrecord 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
-