Enum Class ClientPacketSink

java.lang.Object
java.lang.Enum<ClientPacketSink>
foundry.veil.impl.network.ClientPacketSink
All Implemented Interfaces:
VeilPacketManager.PacketSink, Serializable, Comparable<ClientPacketSink>, Constable

@Internal public enum ClientPacketSink extends Enum<ClientPacketSink> implements VeilPacketManager.PacketSink
  • Enum Constant Details

  • Method Details

    • values

      public static ClientPacketSink[] 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

      public static ClientPacketSink valueOf(String name)
      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 name
      NullPointerException - 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 interface VeilPacketManager.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 interface VeilPacketManager.PacketSink
      Parameters:
      packet - the packet to send