Interface PacketSender
- All Superinterfaces:
org.quiltmc.qsl.networking.api.PacketSender
Deprecated.
Represents something that supports sending packets to channels.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidsendPacket(Packet<?> packet, @Nullable io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> callback) Deprecated.Sends a packet.default voidsendPacket(Identifier channel, PacketByteBuf buf, @Nullable io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> callback) Deprecated.Sends a packet to a channel.default <T extends FabricPacket>
voidsendPacket(T packet) Deprecated.Sends a packet.default <T extends FabricPacket>
voidsendPacket(T packet, @Nullable io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> callback) Deprecated.Sends a packet.default <T extends FabricPacket>
voidsendPacket(T packet, @Nullable PacketCallbacks callback) Deprecated.Sends a packet.Methods inherited from interface org.quiltmc.qsl.networking.api.PacketSender
createPacket, sendPacket, sendPacket, sendPacket, sendPacket
-
Method Details
-
sendPacket
Deprecated.Sends a packet.- Parameters:
packet- the packet
-
sendPacket
void sendPacket(Packet<?> packet, @Nullable @Nullable io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> callback) Deprecated.Sends a packet.- Parameters:
packet- the packetcallback- an optional callback to execute after the packet is sent, may benull. The callback may also accept aChannelFutureListener.
-
sendPacket
default <T extends FabricPacket> void sendPacket(T packet, @Nullable @Nullable io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> callback) Deprecated.Sends a packet.- Parameters:
packet- the packetcallback- an optional callback to execute after the packet is sent, may benull. The callback may also accept aChannelFutureListener.
-
sendPacket
default <T extends FabricPacket> void sendPacket(T packet, @Nullable @Nullable PacketCallbacks callback) Deprecated.Sends a packet.- Parameters:
packet- the packetcallback- an optional callback to execute after the packet is sent, may benull. The callback may also accept aChannelFutureListener.
-
sendPacket
default void sendPacket(Identifier channel, PacketByteBuf buf, @Nullable @Nullable io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> callback) Deprecated.Sends a packet to a channel.- Parameters:
channel- the id of the channelbuf- the content of the packetcallback- an optional callback to execute after the packet is sent, may benull
-
PacketSenderinstead.