public class LoginEvent extends AsyncEvent<LoginEvent> implements Cancellable
| Constructor and Description |
|---|
LoginEvent(PendingConnection connection,
Callback<LoginEvent> done) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getCancelReason()
Deprecated.
Use component methods instead.
|
BaseComponent[] |
getCancelReasonComponents()
Message to use when kicking if this event is canceled.
|
PendingConnection |
getConnection()
Connection attempting to login.
|
int |
hashCode() |
boolean |
isCancelled()
Cancelled state.
|
void |
setCancelled(boolean cancelled)
Cancelled state.
|
void |
setCancelReason(BaseComponent... cancelReason) |
void |
setCancelReason(String cancelReason)
Deprecated.
|
String |
toString() |
completeIntent, postCall, registerIntentpublic LoginEvent(PendingConnection connection, Callback<LoginEvent> done)
@Deprecated public String getCancelReason()
@Deprecated public void setCancelReason(String cancelReason)
setCancelReason(net.md_5.bungee.api.chat.BaseComponent...)
instead.cancelReason - reason to be displayedpublic void setCancelReason(BaseComponent... cancelReason)
public boolean isCancelled()
isCancelled in interface Cancellablepublic BaseComponent[] getCancelReasonComponents()
public PendingConnection getConnection()
public void setCancelled(boolean cancelled)
setCancelled in interface Cancellablecancelled - the state to setpublic String toString()
toString in class AsyncEvent<LoginEvent>public boolean equals(Object o)
equals in class AsyncEvent<LoginEvent>protected boolean canEqual(Object other)
canEqual in class AsyncEvent<LoginEvent>public int hashCode()
hashCode in class AsyncEvent<LoginEvent>Copyright © 2012–2020 SpigotMC. All rights reserved.