Package net.minecraftforge.network
Enum Class Channel.VersionTest.Status
- All Implemented Interfaces:
- Serializable,- Comparable<Channel.VersionTest.Status>,- Constable
- Enclosing interface:
- Channel.VersionTest
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Channel.VersionTest.StatusReturns 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- 
VANILLAThis 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.
- 
MISSINGThis is used when we are on a modded connection that has sent a channel version list, but that list does not contain this channel.
- 
PRESENTThis 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- 
Statusprivate Status()
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
 
-