Package net.minecraftforge.network
Enum Class Channel.VersionTest.Status
- All Implemented Interfaces:
Serializable
,Comparable<Channel.VersionTest.Status>
,Constable
- Enclosing interface:
- Channel.VersionTest
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis is used when we are on a modded connection that has sent a channel version list, but that list does not contain this channel.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 value is used when the connection has not specified that it is modded, and has not sent a channel list. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Channel.VersionTest.Status
Returns the enum constant of this class with the specified name.static Channel.VersionTest.Status[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
-