Class CookieRequestEvent.ForwardResult
java.lang.Object
com.velocitypowered.api.event.player.CookieRequestEvent.ForwardResult
- All Implemented Interfaces:
ResultedEvent.Result
- Enclosing class:
- CookieRequestEvent
public static final class CookieRequestEvent.ForwardResult
extends Object
implements ResultedEvent.Result
A result determining whether or not to forward the cookie request on.
-
Method Summary
Modifier and TypeMethodDescriptionforward()
Allows the cookie request to be forwarded to the client.getKey()
handled()
Prevents the cookie request from being forwarded to the client, the cookie request is handled by the proxy.boolean
Returns whether or not the event is allowed to proceed.Allows the cookie request to be forwarded to the client, but silently replaces the identifier of the cookie with another.toString()
-
Method Details
-
isAllowed
public boolean isAllowed()Description copied from interface:ResultedEvent.Result
Returns whether or not the event is allowed to proceed. Plugins may choose to skip denied events, and the proxy will respect the result of this method.- Specified by:
isAllowed
in interfaceResultedEvent.Result
- Returns:
- whether or not the event is allowed to proceed
-
getKey
-
toString
-
forward
Allows the cookie request to be forwarded to the client.- Returns:
- the forward result
-
handled
Prevents the cookie request from being forwarded to the client, the cookie request is handled by the proxy.- Returns:
- the handled result
-
key
Allows the cookie request to be forwarded to the client, but silently replaces the identifier of the cookie with another.- Parameters:
key
- the identifier to use instead- Returns:
- a result with a new key
-