Enum Class Channel.VersionTest.Status

java.lang.Object
java.lang.Enum<Channel.VersionTest.Status>
net.minecraftforge.network.Channel.VersionTest.Status
All Implemented Interfaces:
Serializable, Comparable<Channel.VersionTest.Status>, Constable
Enclosing interface:
Channel.VersionTest

public static enum Channel.VersionTest.Status extends Enum<Channel.VersionTest.Status>
  • Enum Constant Details

    • VANILLA

      public static final Channel.VersionTest.Status VANILLA
      This value is used when the connection has not specified that it is modded, and has not sent a channel list. So we must assume that it is a unmodified vanilla environment.
    • MISSING

      public static final Channel.VersionTest.Status MISSING
      This is used when we are on a modded connection that has sent a channel version list, but that list does not contain this channel.
    • PRESENT

      public static final Channel.VersionTest.Status PRESENT
      This is used when we are on a modded connection, the channel version list has been received and this channel is in the list. This is the only time that the version parameter of accept is valid.
  • Constructor Details

    • Status

      private Status()
  • Method Details

    • values

      public static Channel.VersionTest.Status[] 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 Channel.VersionTest.Status 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