public class ConnectionRequestEvent extends Object implements com.nukkitx.api.event.Event, Cancellable
| Constructor and Description |
|---|
ConnectionRequestEvent(InetSocketAddress address) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getAddress()
Get address of connecting user.
|
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic ConnectionRequestEvent(InetSocketAddress address)
public InetSocketAddress getAddress()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2020 NukkitX. All rights reserved.