CountingPacketBundle

public final class CountingPacketBundle implements AbstractPacketBundle

Decorates a real AbstractPacketBundle, forwarding every call unchanged while tallying packets. Only ever installed for a tick that is being sampled, so the hot path pays nothing when the sampler is disarmed.

Functions

Link copied to clipboard
public void addPacket(Object packet, List<Player> viewers)
Link copied to clipboard
public void send()