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, registerIntent
public ConnectionInitEvent(SocketAddress remoteAddress, ListenerInfo listener, Callback<ConnectionInitEvent> done)
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- the state to set@Deprecated public InetSocketAddress getRemoteAddress()
public SocketAddress getRemoteSocketAddress()
public String toString()
toString
in class AsyncEvent<ConnectionInitEvent>
Copyright © 2019–2022. All rights reserved.