Package foundry.veil.impl.network
Enum Class ClientPacketSink
- All Implemented Interfaces:
VeilPacketManager.PacketSink
,Serializable
,Comparable<ClientPacketSink>
,Constable
@Internal
public enum ClientPacketSink
extends Enum<ClientPacketSink>
implements VeilPacketManager.PacketSink
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.static ClientPacketSink
Returns the enum constant of this class with the specified name.static ClientPacketSink[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
sendPacket
public void sendPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload... payloads) Description copied from interface:VeilPacketManager.PacketSink
Sends one or more payloads in a single packet.- Specified by:
sendPacket
in interfaceVeilPacketManager.PacketSink
- Parameters:
payloads
- All packets to send
-
sendPacket
public void sendPacket(net.minecraft.network.protocol.Packet<?> packet) Description copied from interface:VeilPacketManager.PacketSink
Sends a single packet.- Specified by:
sendPacket
in interfaceVeilPacketManager.PacketSink
- Parameters:
packet
- the packet to send
-