public class ConnectionInitEvent extends AsyncEvent<ConnectionInitEvent> implements Cancellable
| Constructor and Description |
|---|
ConnectionInitEvent(SocketAddress remoteAddress,
ListenerInfo listener,
Callback<ConnectionInitEvent> done) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getRemoteAddress()
Deprecated.
BungeeCord can accept connections via Unix domain sockets
|
SocketAddress |
getRemoteSocketAddress() |
boolean |
isCancelled()
Get whether or not this event is cancelled.
|
void |
setCancelled(boolean cancel)
Sets the cancelled state of this event.
|
String |
toString() |
canEqual, completeIntent, equals, hashCode, postCall, registerIntentpublic ConnectionInitEvent(SocketAddress remoteAddress, ListenerInfo listener, Callback<ConnectionInitEvent> done)
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - the state to set@Deprecated public InetSocketAddress getRemoteAddress()
public SocketAddress getRemoteSocketAddress()
public String toString()
toString in class AsyncEvent<ConnectionInitEvent>Copyright © 2015–2020 WaterfallMC. All rights reserved.