Class WrapperPlayServerBundle

java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerBundle

public class WrapperPlayServerBundle extends AbstractPacket
A collection of several packets that are sent to the client at once. The client executes each of these packets in the same tick.
  • Field Details

    • TYPE

      public static final com.comphenix.protocol.PacketType TYPE
      The packet type that is wrapped by this wrapper.
  • Constructor Details

    • WrapperPlayServerBundle

      public WrapperPlayServerBundle()
      Constructs a new wrapper and initialize it with a packet handle with default values
    • WrapperPlayServerBundle

      public WrapperPlayServerBundle(com.comphenix.protocol.events.PacketContainer packet)
      Constructors a new wrapper for the specified packet
      Parameters:
      packet - the packet to wrap
  • Method Details

    • getPackets

      public Iterable<com.comphenix.protocol.events.PacketContainer> getPackets()
      Gets an iterable of the packets in this bundle
      Returns:
      packets in this bundle
    • setPackets

      public void setPackets(Iterable<com.comphenix.protocol.events.PacketContainer> packets)
      Sets the packets in this bundle
      Parameters:
      packets - packets in this bundle