Class WrapperPlayServerBundle
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerBundle
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final com.comphenix.protocol.PacketType
The packet type that is wrapped by this wrapper.Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerBundle
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionIterable<com.comphenix.protocol.events.PacketContainer>
Gets an iterable of the packets in this bundlevoid
setPackets
(Iterable<com.comphenix.protocol.events.PacketContainer> packets) Sets the packets in this bundleMethods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe 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
Gets an iterable of the packets in this bundle- Returns:
- packets in this bundle
-
setPackets
Sets the packets in this bundle- Parameters:
packets
- packets in this bundle
-