Package net.md_5.bungee.api.event
Class ProxyPingEvent
- java.lang.Object
-
- net.md_5.bungee.api.plugin.Event
-
- net.md_5.bungee.api.event.AsyncEvent<ProxyPingEvent>
-
- net.md_5.bungee.api.event.ProxyPingEvent
-
public class ProxyPingEvent extends AsyncEvent<ProxyPingEvent>
Called when the proxy is pinged with packet 0xFE from the server list.
-
-
Constructor Summary
Constructors Constructor Description ProxyPingEvent(PendingConnection connection, ServerPing response, Callback<ProxyPingEvent> done)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)PendingConnectiongetConnection()The connection asking for a ping response.ServerPinggetResponse()The data to respond with.inthashCode()voidsetResponse(ServerPing response)The data to respond with.StringtoString()-
Methods inherited from class net.md_5.bungee.api.event.AsyncEvent
completeIntent, postCall, registerIntent
-
-
-
-
Constructor Detail
-
ProxyPingEvent
public ProxyPingEvent(PendingConnection connection, ServerPing response, Callback<ProxyPingEvent> done)
-
-
Method Detail
-
getConnection
public PendingConnection getConnection()
The connection asking for a ping response.
-
getResponse
public ServerPing getResponse()
The data to respond with.
-
setResponse
public void setResponse(ServerPing response)
The data to respond with.
-
toString
public String toString()
- Overrides:
toStringin classAsyncEvent<ProxyPingEvent>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAsyncEvent<ProxyPingEvent>
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classAsyncEvent<ProxyPingEvent>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAsyncEvent<ProxyPingEvent>
-
-