Package net.md_5.bungee.protocol

# Class PacketWrapper

java.lang.Object
net.md_5.bungee.protocol.PacketWrapper

public class PacketWrapper extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `final io.netty.buffer.ByteBuf`
  `buf`
  `final DefinedPacket`
  `packet`
  `final Protocol`
  `protocol`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PacketWrapper(DefinedPacket packet, io.netty.buffer.ByteBuf buf, Protocol protocol)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `setReleased(boolean released)`
  `void`
  `trySingleRelease()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### packet

    public final DefinedPacket packet

  - ### buf

    public final io.netty.buffer.ByteBuf buf

  - ### protocol

    public final Protocol protocol

- ## Constructor Details

  - ### PacketWrapper

    public PacketWrapper(DefinedPacket packet, io.netty.buffer.ByteBuf buf, Protocol protocol)

- ## Method Details

  - ### trySingleRelease

    public void trySingleRelease()

  - ### setReleased

    public void setReleased(boolean released)