# Uses of Enum
net.md_5.bungee.protocol.Protocol

Packages that use Protocol
Package
Description
net.md_5.bungee.protocol
net.md_5.bungee.protocol.packet

- ## Uses of Protocol in net.md_5.bungee.protocol

  Fields in net.md_5.bungee.protocol declared as Protocol
  Modifier and Type
  Field
  Description
  `final Protocol`
  PacketWrapper.`protocol`
  Methods in net.md_5.bungee.protocol that return Protocol
  Modifier and Type
  Method
  Description
  `Protocol`
  MinecraftDecoder.`getProtocol()`
  `Protocol`
  MinecraftEncoder.`getProtocol()`
  `Protocol`
  DefinedPacket.`nextProtocol()`
  `static Protocol`
  Protocol.`valueOf(String name)`
  Returns the enum constant of this type with the specified name.
  `static Protocol[]`
  Protocol.`values()`
  Returns an array containing the constants of this enum type, in the order they are declared.
  Methods in net.md_5.bungee.protocol with parameters of type Protocol
  Modifier and Type
  Method
  Description
  `void`
  DefinedPacket.`read(io.netty.buffer.ByteBuf buf, Protocol protocol, ProtocolConstants.Direction direction, int protocolVersion)`
  `void`
  MinecraftDecoder.`setProtocol(Protocol protocol)`
  `void`
  MinecraftEncoder.`setProtocol(Protocol protocol)`
  `void`
  DefinedPacket.`write(io.netty.buffer.ByteBuf buf, Protocol protocol, ProtocolConstants.Direction direction, int protocolVersion)`
  Constructors in net.md_5.bungee.protocol with parameters of type Protocol
  Modifier
  Constructor
  Description
  ``
  `DirectionData(Protocol protocolPhase, ProtocolConstants.Direction direction)`
  ``
  `MinecraftDecoder(Protocol protocol, boolean server, int protocolVersion)`
  ``
  `MinecraftDecoder(Protocol protocol, boolean server, int protocolVersion, boolean copyBuffer)`
  ``
  `MinecraftEncoder(Protocol protocol, boolean server, int protocolVersion)`
  ``
  `PacketWrapper(DefinedPacket packet, io.netty.buffer.ByteBuf buf, Protocol protocol)`

- ## Uses of Protocol in net.md_5.bungee.protocol.packet

  Methods in net.md_5.bungee.protocol.packet that return Protocol
  Modifier and Type
  Method
  Description
  `Protocol`
  FinishConfiguration.`nextProtocol()`
  `Protocol`
  LoginAcknowledged.`nextProtocol()`
  `Protocol`
  StartConfiguration.`nextProtocol()`
  Methods in net.md_5.bungee.protocol.packet with parameters of type Protocol
  Modifier and Type
  Method
  Description
  `void`
  CustomClickAction.`read(io.netty.buffer.ByteBuf buf, Protocol protocol, ProtocolConstants.Direction direction, int protocolVersion)`
  `void`
  Kick.`read(io.netty.buffer.ByteBuf buf, Protocol protocol, ProtocolConstants.Direction direction, int protocolVersion)`
  `void`
  CustomClickAction.`write(io.netty.buffer.ByteBuf buf, Protocol protocol, ProtocolConstants.Direction direction, int protocolVersion)`
  `void`
  Kick.`write(io.netty.buffer.ByteBuf buf, Protocol protocol, ProtocolConstants.Direction direction, int protocolVersion)`