public interface ListenerInvoker
Modifier and Type | Method and Description |
---|---|
com.comphenix.protocol.injector.packet.InterceptWritePacket |
getInterceptWritePacket()
Retrieve the object responsible for intercepting write packets.
|
java.lang.Class<?> |
getPacketClassFromID(int packetID,
boolean forceVanilla)
Deprecated.
|
int |
getPacketID(java.lang.Object packet)
Deprecated.
|
PacketType |
getPacketType(java.lang.Object packet)
Retrieve the associated type of a packet.
|
void |
invokePacketRecieving(PacketEvent event)
Invokes the given packet event for every registered listener.
|
void |
invokePacketSending(PacketEvent event)
Invokes the given packet event for every registered listener.
|
void |
registerPacketClass(java.lang.Class<?> clazz,
int packetID)
Deprecated.
|
boolean |
requireInputBuffer(int packetId)
Deprecated.
|
void |
unregisterPacketClass(java.lang.Class<?> clazz)
Associate a given class with the given packet ID.
|
void invokePacketRecieving(PacketEvent event)
event
- - the packet event to invoke.void invokePacketSending(PacketEvent event)
event
- - the packet event to invoke.@Deprecated int getPacketID(java.lang.Object packet)
packet
- - the packet.PacketType getPacketType(java.lang.Object packet)
packet
- - the packet.com.comphenix.protocol.injector.packet.InterceptWritePacket getInterceptWritePacket()
@Deprecated boolean requireInputBuffer(int packetId)
packetId
- - the packet to check.void unregisterPacketClass(java.lang.Class<?> clazz)
clazz
- - class to associate.@Deprecated void registerPacketClass(java.lang.Class<?> clazz, int packetID)
clazz
- - class to register.packetID
- - the the new associated packet ID.@Deprecated java.lang.Class<?> getPacketClassFromID(int packetID, boolean forceVanilla)
packetID
- - the packet ID.forceVanilla
- - whether or not to look for vanilla classes, not injected classes.