Uses of Enum Class
dev.jorel.commandapi.network.CommandAPIProtocol
Packages that use CommandAPIProtocol
-
Uses of CommandAPIProtocol in dev.jorel.commandapi.network
Subclasses with type arguments of type CommandAPIProtocol in dev.jorel.commandapi.networkModifier and TypeClassDescriptionenumAn enum that defines the different channels of the network protocol of the CommandAPI.Methods in dev.jorel.commandapi.network that return CommandAPIProtocolModifier and TypeMethodDescriptionstatic CommandAPIProtocolCommandAPIProtocol.getProtocolForChannel(String channelIdentifier) Gets theCommandAPIProtocolthat handlesCommandAPIPackets on the given channel.static CommandAPIProtocolCommandAPIProtocol.getProtocolForPacket(Class<? extends CommandAPIPacket> clazz) Gets theCommandAPIProtocolthat can send the givenCommandAPIPacketpacket type.static CommandAPIProtocolReturns the enum constant of this class with the specified name.static CommandAPIProtocol[]CommandAPIProtocol.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in dev.jorel.commandapi.network with parameters of type CommandAPIProtocolModifier and TypeMethodDescriptiondefault CommandAPIPacketHandler<InputChannel> CommandAPIPacketHandlerProvider.getHandlerForProtocol(CommandAPIProtocol protocol) Gets theCommandAPIPacketHandlerfor the givenCommandAPIProtocol.protected voidCommandAPIMessenger.messageReceived(CommandAPIProtocol protocol, InputChannel sender, byte[] input) Handles a message sent to this plugin.protected abstract voidCommandAPIMessenger.sendRawBytes(CommandAPIProtocol protocol, OutputChannel target, byte[] bytes) Sends an array of bytes to the given target.