Enum Class PacketBounds

java.lang.Object
java.lang.Enum<PacketBounds>
de.luckymcdev.foundryengine.common.network.PacketBounds
All Implemented Interfaces:
Serializable, Comparable<PacketBounds>, Constable

public enum PacketBounds extends Enum<PacketBounds>
  • Enum Constant Details

    • CLIENT

      public static final PacketBounds CLIENT
      Server -> Client
    • SERVER

      public static final PacketBounds SERVER
      Client -> Server
    • BOTH

      public static final PacketBounds BOTH
      Client -> Server AND Server -> Client
  • Method Details

    • values

      public static PacketBounds[] 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 PacketBounds 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
    • isBoth

      public boolean isBoth()
    • isServer

      public boolean isServer()
    • isClient

      public boolean isClient()