public class PacketNotificationsBroadcaster extends Object implements PacketListener
Modifier and Type | Field and Description |
---|---|
private PacketListener[] |
listeners |
Constructor and Description |
---|
PacketNotificationsBroadcaster(PacketListener... listeners) |
Modifier and Type | Method and Description |
---|---|
void |
packetReceived(FS4Channel channel,
BasicPacket packet,
ByteBuffer serializedForm) |
void |
packetSent(FS4Channel channel,
BasicPacket packet,
ByteBuffer serializedForm) |
private final PacketListener[] listeners
public PacketNotificationsBroadcaster(PacketListener... listeners)
public void packetSent(FS4Channel channel, BasicPacket packet, ByteBuffer serializedForm)
packetSent
in interface PacketListener
public void packetReceived(FS4Channel channel, BasicPacket packet, ByteBuffer serializedForm)
packetReceived
in interface PacketListener
Copyright © 2018. All rights reserved.