Enum Class NetworkedEnum.NetworkCheck

java.lang.Object
java.lang.Enum<NetworkedEnum.NetworkCheck>
net.neoforged.fml.common.asm.enumextension.NetworkedEnum.NetworkCheck
All Implemented Interfaces:
Serializable, Comparable<NetworkedEnum.NetworkCheck>, Constable
Enclosing class:
NetworkedEnum

public static enum NetworkedEnum.NetworkCheck extends Enum<NetworkedEnum.NetworkCheck>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    To be used for enums which are sent in both directions, disallowing connections to either vanilla counterpart when the enum is extended
    To be used for enums which are sent to the client, allowing connections to a vanilla server when the enum is extended on the client but not to a vanilla client when the enum is extended on the server
    To be used for enums which are sent to the server, allowing connections to a vanilla client when the enum is extended on the server but not to a vanilla server when the enum is extended on the client
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • CLIENTBOUND

      public static final NetworkedEnum.NetworkCheck CLIENTBOUND
      To be used for enums which are sent to the client, allowing connections to a vanilla server when the enum is extended on the client but not to a vanilla client when the enum is extended on the server
    • SERVERBOUND

      public static final NetworkedEnum.NetworkCheck SERVERBOUND
      To be used for enums which are sent to the server, allowing connections to a vanilla client when the enum is extended on the server but not to a vanilla server when the enum is extended on the client
    • BIDIRECTIONAL

      public static final NetworkedEnum.NetworkCheck BIDIRECTIONAL
      To be used for enums which are sent in both directions, disallowing connections to either vanilla counterpart when the enum is extended
  • Constructor Details

    • NetworkCheck

      private NetworkCheck()
  • Method Details

    • values

      public static NetworkedEnum.NetworkCheck[] 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 NetworkedEnum.NetworkCheck 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