Record Class ServerRegisteredEvent
java.lang.Object
java.lang.Record
com.velocitypowered.api.event.proxy.server.ServerRegisteredEvent
- Record Components:
registeredServer- ARegisteredServerthat has been registered.
This event is fired by the proxy after a backend server is registered to the server map.
Currently, it may occur when a server is registered dynamically at runtime or when a server is
replaced due to configuration reload.
- Since:
- 3.3.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServerRegisteredEvent(@NotNull RegisteredServer registeredServer) Creates an instance of aServerRegisteredEventrecord 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.@NotNull RegisteredServerReturns the value of theregisteredServerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServerRegisteredEvent
Creates an instance of aServerRegisteredEventrecord class.- Parameters:
registeredServer- the value for theregisteredServerrecord 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). -
registeredServer
Returns the value of theregisteredServerrecord component.- Returns:
- the value of the
registeredServerrecord component
-