public abstract class CapabilityNegotiationResponseEventBase extends ServerMessageEventBase implements CapabilityNegotiationResponseEvent
Modifier | Constructor and Description |
---|---|
protected |
CapabilityNegotiationResponseEventBase(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
boolean negotiating)
Constructs the event.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isEndingNegotiation()
Gets if negotiation should end after this event fires, which can be
changed via this event.
|
boolean |
isNegotiating()
Gets if this event is fired during capability negotiation.
|
void |
setEndingNegotiation(boolean endNegotiation)
Sets if negotiation should end after this event fires.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getSource
getClient, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getClient
getTag, getTag, getTags
protected CapabilityNegotiationResponseEventBase(@NonNull Client client, @NonNull ServerMessage sourceMessage, boolean negotiating)
client
- the clientsourceMessage
- source messagenegotiating
- if we are negotiating right nowpublic final boolean isEndingNegotiation()
CapabilityNegotiationResponseEvent
isEndingNegotiation
in interface CapabilityNegotiationResponseEvent
CapabilityNegotiationResponseEvent.setEndingNegotiation(boolean)
public final boolean isNegotiating()
CapabilityNegotiationResponseEvent
isNegotiating
in interface CapabilityNegotiationResponseEvent
public final void setEndingNegotiation(boolean endNegotiation)
CapabilityNegotiationResponseEvent
CapabilityNegotiationResponseEvent.isNegotiating()
is true,
the connection will not complete.setEndingNegotiation
in interface CapabilityNegotiationResponseEvent
endNegotiation
- true if negotiation should end, false if notprotected @NonNull ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class ServerMessageEventBase
Copyright © 2013–2021 Kitteh. All rights reserved.