Class PacketSendEvent
java.lang.Object
com.github.retrooper.packetevents.event.PacketEvent
com.github.retrooper.packetevents.event.ProtocolPacketEvent
com.github.retrooper.packetevents.event.PacketSendEvent
- All Implemented Interfaces:
CallableEvent
,CancellableEvent
,PlayerEvent
,UserEvent
- Direct Known Subclasses:
PacketConfigSendEvent
,PacketHandshakeSendEvent
,PacketLoginSendEvent
,PacketPlaySendEvent
,PacketStatusSendEvent
-
Constructor Summary
ModifierConstructorDescriptionprotected
PacketSendEvent
(int packetID, PacketTypeCommon packetType, ServerVersion serverVersion, Object channel, User user, Object player, Object byteBuf) protected
PacketSendEvent
(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
-
PacketSendEvent
protected PacketSendEvent(Object channel, User user, Object player, Object rawByteBuf, boolean autoProtocolTranslation) throws PacketProcessException - Throws:
PacketProcessException
-
PacketSendEvent
protected PacketSendEvent(int packetID, PacketTypeCommon packetType, ServerVersion serverVersion, Object channel, User user, Object player, Object byteBuf) throws PacketProcessException - Throws:
PacketProcessException
-
-
Method Details
-
call
-
getTasksAfterSend
-
hasTasksAfterSend
public boolean hasTasksAfterSend() -
clone
- Overrides:
clone
in classProtocolPacketEvent
-