public interface PacketStream
Modifier and Type | Method and Description |
---|---|
void |
recieveClientPacket(org.bukkit.entity.Player sender,
PacketContainer packet)
Simulate recieving a certain packet from a given player.
|
void |
recieveClientPacket(org.bukkit.entity.Player sender,
PacketContainer packet,
boolean filters)
Simulate recieving a certain packet from a given player.
|
void |
sendServerPacket(org.bukkit.entity.Player reciever,
PacketContainer packet)
Send a packet to the given player.
|
void |
sendServerPacket(org.bukkit.entity.Player reciever,
PacketContainer packet,
boolean filters)
Send a packet to the given player.
|
void sendServerPacket(org.bukkit.entity.Player reciever, PacketContainer packet) throws java.lang.reflect.InvocationTargetException
reciever
- - the reciever.packet
- - packet to send.java.lang.reflect.InvocationTargetException
- - if an error occured when sending the packet.void sendServerPacket(org.bukkit.entity.Player reciever, PacketContainer packet, boolean filters) throws java.lang.reflect.InvocationTargetException
reciever
- - the reciever.packet
- - packet to send.filters
- - whether or not to invoke any packet filters below ListenerPriority.MONITOR
.java.lang.reflect.InvocationTargetException
- - if an error occured when sending the packet.void recieveClientPacket(org.bukkit.entity.Player sender, PacketContainer packet) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
sender
- - the sender.packet
- - the packet that was sent.java.lang.reflect.InvocationTargetException
- If the reflection machinery failed.java.lang.IllegalAccessException
- If the underlying method caused an error.void recieveClientPacket(org.bukkit.entity.Player sender, PacketContainer packet, boolean filters) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
sender
- - the sender.packet
- - the packet that was sent.filters
- - whether or not to invoke any packet filters below ListenerPriority.MONITOR
.java.lang.reflect.InvocationTargetException
- If the reflection machinery failed.java.lang.IllegalAccessException
- If the underlying method caused an error.