public class PacketReceiveEvent extends PacketEvent implements CancellableEvent
PacketEvent.PacketSourceType
Constructor and Description |
---|
PacketReceiveEvent(PacketEvent.PacketSourceType source,
AbstractPacket packet,
Player p) |
Modifier and Type | Method and Description |
---|---|
boolean |
isCancelled() |
void |
setCancelled(boolean cancel) |
getPacket, getPacketSourceType, hasPlayer
getPlayer
public PacketReceiveEvent(PacketEvent.PacketSourceType source, AbstractPacket packet, Player p)
public boolean isCancelled()
isCancelled
in interface CancellableEvent
public void setCancelled(boolean cancel)
setCancelled
in interface CancellableEvent