Package foundry.veil.api.network
Interface VeilPacketManager.PacketSink
- All Known Implementing Classes:
ClientPacketSink
- Enclosing interface:
VeilPacketManager
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Sends packets to players and automatically bundles payloads together.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
sendPacket
(net.minecraft.network.protocol.common.custom.CustomPacketPayload... payloads) Sends one or more payloads in a single packet.void
sendPacket
(net.minecraft.network.protocol.Packet<?> packet) Sends a single packet.
-
Method Details
-
sendPacket
default void sendPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload... payloads) Sends one or more payloads in a single packet.- Parameters:
payloads
- All packets to send
-
sendPacket
void sendPacket(net.minecraft.network.protocol.Packet<?> packet) Sends a single packet.- Parameters:
packet
- the packet to send
-