Interface PluginMessageEvent
-
- All Superinterfaces:
Event,ResultedEvent<ResultedEvent.GenericResult>
- All Known Implementing Classes:
PluginMessageEventImpl
public interface PluginMessageEvent extends ResultedEvent<ResultedEvent.GenericResult>
This event is fired when a plugin message is sent to the proxy, either from a client (Player) or a server (ServerConnection).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.velocitypowered.api.event.ResultedEvent
ResultedEvent.ComponentResult, ResultedEvent.GenericResult, ResultedEvent.Result
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PluginChannelIdchannel()ByteArrayDataInputmessageAsDataInput()ByteArrayInputStreammessageAsInputStream()byte[]rawMessage()default voidsetHandled(boolean handled)ChannelMessageSinksink()ChannelMessageSourcesource()-
Methods inherited from interface com.velocitypowered.api.event.ResultedEvent
result, setResult
-
-
-
-
Method Detail
-
source
ChannelMessageSource source()
-
sink
ChannelMessageSink sink()
-
channel
PluginChannelId channel()
-
rawMessage
byte[] rawMessage()
-
messageAsInputStream
ByteArrayInputStream messageAsInputStream()
-
messageAsDataInput
ByteArrayDataInput messageAsDataInput()
-
setHandled
default void setHandled(boolean handled)
-
-