Class PacketReceiveEvent
java.lang.Object
com.github.retrooper.packetevents.event.PacketEvent
com.github.retrooper.packetevents.event.ProtocolPacketEvent
com.github.retrooper.packetevents.event.PacketReceiveEvent
- All Implemented Interfaces:
CallableEvent
,CancellableEvent
,PlayerEvent
,UserEvent
- Direct Known Subclasses:
PacketConfigReceiveEvent
,PacketHandshakeReceiveEvent
,PacketLoginReceiveEvent
,PacketPlayReceiveEvent
,PacketStatusReceiveEvent
-
Constructor Summary
ModifierConstructorDescriptionprotected
PacketReceiveEvent
(int packetID, PacketTypeCommon packetType, ServerVersion serverVersion, Object channel, User user, Object player, Object byteBuf) protected
PacketReceiveEvent
(Object channel, User user, Object player, Object rawByteBuf, boolean autoProtocolTranslation) -
Method Summary
Methods inherited from class com.github.retrooper.packetevents.event.ProtocolPacketEvent
cleanUp, getAddress, getByteBuf, getChannel, getClientVersion, getConnectionState, getFullBufferClone, getLastUsedWrapper, getPacketId, getPacketName, getPacketType, getPlayer, getPostTasks, getServerVersion, getSocketAddress, getUser, hasPostTasks, isCancelled, isClone, markForReEncode, needsReEncode, setByteBuf, setCancelled, setClientVersion, setLastUsedWrapper, setServerVersion
Methods inherited from class com.github.retrooper.packetevents.event.PacketEvent
callPacketEventExternal, getTimestamp
-
Constructor Details
-
PacketReceiveEvent
protected PacketReceiveEvent(Object channel, User user, Object player, Object rawByteBuf, boolean autoProtocolTranslation) throws PacketProcessException - Throws:
PacketProcessException
-
PacketReceiveEvent
protected PacketReceiveEvent(int packetID, PacketTypeCommon packetType, ServerVersion serverVersion, Object channel, User user, Object player, Object byteBuf) throws PacketProcessException - Throws:
PacketProcessException
-
-
Method Details
-
call
-
clone
- Overrides:
clone
in classProtocolPacketEvent
-