Uses of Interface
com.velocitypowered.api.proxy.messages.ChannelIdentifier
Packages that use ChannelIdentifier
Package
Description
Provides events for handling incoming connections to the proxy and logins.
Provides events for handling actions performed by players.
Provides an interface to interact with the proxy at a low level.
Provides an interface to receive, handle, and send plugin messages on the proxy from clients and
servers.
-
Uses of ChannelIdentifier in com.velocitypowered.api.event.connection
Methods in com.velocitypowered.api.event.connection that return ChannelIdentifierConstructors in com.velocitypowered.api.event.connection with parameters of type ChannelIdentifierModifierConstructorDescriptionPluginMessageEvent
(ChannelMessageSource source, ChannelMessageSink target, ChannelIdentifier identifier, byte[] data) Creates a new instance. -
Uses of ChannelIdentifier in com.velocitypowered.api.event.player
Methods in com.velocitypowered.api.event.player that return ChannelIdentifierMethods in com.velocitypowered.api.event.player that return types with arguments of type ChannelIdentifierConstructors in com.velocitypowered.api.event.player with parameters of type ChannelIdentifierModifierConstructorDescriptionServerLoginPluginMessageEvent
(ServerConnection connection, ChannelIdentifier identifier, byte[] contents, int sequenceId) Constructs a newServerLoginPluginMessageEvent
.Constructor parameters in com.velocitypowered.api.event.player with type arguments of type ChannelIdentifierModifierConstructorDescriptionPlayerChannelRegisterEvent
(Player player, List<ChannelIdentifier> channels) -
Uses of ChannelIdentifier in com.velocitypowered.api.proxy
Methods in com.velocitypowered.api.proxy with parameters of type ChannelIdentifierModifier and TypeMethodDescriptionvoid
LoginPhaseConnection.sendLoginPluginMessage
(ChannelIdentifier identifier, byte[] contents, LoginPhaseConnection.MessageConsumer consumer) Sends a login plugin message to the client, and provides a consumer to react to the response to the client.boolean
Player.sendPluginMessage
(@NotNull ChannelIdentifier identifier, byte @NotNull [] data) Sends a plugin message to this target.boolean
Player.sendPluginMessage
(@NotNull ChannelIdentifier identifier, @NotNull PluginMessageEncoder dataEncoder) Sends a plugin message to this target. -
Uses of ChannelIdentifier in com.velocitypowered.api.proxy.messages
Classes in com.velocitypowered.api.proxy.messages that implement ChannelIdentifierModifier and TypeClassDescriptionfinal class
Represents a legacy channel identifier (for Minecraft 1.12 and below).final class
Represents a Minecraft 1.13+ channel identifier.Methods in com.velocitypowered.api.proxy.messages with parameters of type ChannelIdentifierModifier and TypeMethodDescriptionvoid
ChannelRegistrar.register
(ChannelIdentifier... identifiers) Registers the specified message identifiers to listen on so you can intercept plugin messages on the channel usingPluginMessageEvent
.boolean
ChannelMessageSink.sendPluginMessage
(@NotNull ChannelIdentifier identifier, byte @NotNull [] data) Sends a plugin message to this target.boolean
ChannelMessageSink.sendPluginMessage
(@NotNull ChannelIdentifier identifier, @NotNull PluginMessageEncoder dataEncoder) Sends a plugin message to this target.void
ChannelRegistrar.unregister
(ChannelIdentifier... identifiers) Removes the intent to listen for the specified channel.