Record Class PlayerConnectionRemovedEvent
java.lang.Object
java.lang.Record
com.zenith.event.player.PlayerConnectionRemovedEvent
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerConnectionRemovedEvent(ServerSession serverConnection) Creates an instance of aPlayerConnectionRemovedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theserverConnectionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlayerConnectionRemovedEvent
Creates an instance of aPlayerConnectionRemovedEventrecord class.- Parameters:
serverConnection- the value for theserverConnectionrecord 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). -
serverConnection
Returns the value of theserverConnectionrecord component.- Returns:
- the value of the
serverConnectionrecord component
-