public class ClientConnectEvent extends Event implements Cancellable
Constructor and Description |
---|
ClientConnectEvent(SocketAddress socketAddress,
ListenerInfo listener) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ListenerInfo |
getListener()
Listener that accepted the connection.
|
SocketAddress |
getSocketAddress()
Remote address of connection.
|
int |
hashCode() |
boolean |
isCancelled()
Cancelled state.
|
void |
setCancelled(boolean cancelled)
Cancelled state.
|
String |
toString() |
public ClientConnectEvent(SocketAddress socketAddress, ListenerInfo listener)
public boolean isCancelled()
isCancelled
in interface Cancellable
public SocketAddress getSocketAddress()
public ListenerInfo getListener()
public void setCancelled(boolean cancelled)
setCancelled
in interface Cancellable
cancelled
- the state to setprotected boolean canEqual(Object other)
Copyright © 2012–2020 SpigotMC. All rights reserved.