Package net.minecraft.network.protocol
Interface BundlerInfo
public interface BundlerInfo
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T extends PacketListener,P extends BundlePacket<T>> 
 BundlerInfocreateForPacket(Class<P> p_265438_, Function<Iterable<Packet<? super T>>, P> p_265627_, BundleDelimiterPacket<T> p_265373_) startPacketBundling(Packet<?> p_265162_) voidunbundlePacket(Packet<?> p_265095_, Consumer<Packet<?>> p_265715_) Deprecated.default voidunbundlePacket(Packet<?> bundlePacket, Consumer<Packet<?>> packetSender, io.netty.channel.ChannelHandlerContext context) Unwrap and flattens a bundle packet.
- 
Field Details- 
BUNDLE_SIZE_LIMITstatic final int BUNDLE_SIZE_LIMIT- See Also:
 
- 
EMPTY
 
- 
- 
Method Details- 
createForPacketstatic <T extends PacketListener,P extends BundlePacket<T>> BundlerInfo createForPacket(Class<P> p_265438_, Function<Iterable<Packet<? super T>>, P> p_265627_, BundleDelimiterPacket<T> p_265373_) 
- 
unbundlePacketDeprecated.UseunbundlePacket(Packet, Consumer, io.netty.channel.ChannelHandlerContext)instead, as it supports packet filtering and is more efficient.
- 
unbundlePacketdefault void unbundlePacket(Packet<?> bundlePacket, Consumer<Packet<?>> packetSender, io.netty.channel.ChannelHandlerContext context) Unwrap and flattens a bundle packet. Then sends the packets contained in the bundle, bracketing them in delimiter packets if need be.- Parameters:
- bundlePacket- The bundle packet to write.
- packetSender- The packet sender.
- context- The network context.
 
- 
startPacketBundling
 
- 
unbundlePacket(Packet, Consumer, io.netty.channel.ChannelHandlerContext)instead, as it supports packet filtering and is more efficient.