Package alexiil.mc.lib.net
Enum CheckingNetByteBuf.NetMethod
java.lang.Object
java.lang.Enum<CheckingNetByteBuf.NetMethod>
alexiil.mc.lib.net.CheckingNetByteBuf.NetMethod
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CheckingNetByteBuf.NetMethod>,java.lang.constant.Constable
- Enclosing class:
- CheckingNetByteBuf
public static enum CheckingNetByteBuf.NetMethod extends java.lang.Enum<CheckingNetByteBuf.NetMethod>
A networking related method that wrote data to the buffer. Also markers for separating sections.
NOTE: The order of these is extremely important, and shouldn't change between releases. (In other words unused values should be replaced with "__UNUSED_1234" and new values must be appended).
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description __UNUSED__1__UNUSED__2__UNUSED__3__UNUSED__4BLOCK_HIT_RESULTBLOCK_POSBOOLEANBYTEBYTESCHARCOMPOUND_TAGCUSTOM_MARKERNot a data type.DOUBLEDOUBLE_LEENUMFIXED_INTFLOATFLOAT_LEINTINT_LELONGLONG_LEMARKER_IDMEDIUMMEDIUM_LESHORTSHORT_LESTRINGVAR_INTVAR_LONGVAR_UINTVAR_ULONG -
Field Summary
Fields Modifier and Type Field Description alexiil.mc.lib.net.CheckingNetByteBuf.NetMethod.NetMethodAppenderappender -
Method Summary
Modifier and Type Method Description static CheckingNetByteBuf.NetMethodvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CheckingNetByteBuf.NetMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MARKER_ID
-
BOOLEAN
-
BYTE
-
SHORT
-
MEDIUM
-
INT
-
LONG
-
SHORT_LE
-
MEDIUM_LE
-
INT_LE
-
LONG_LE
-
FLOAT
-
FLOAT_LE
-
DOUBLE
-
DOUBLE_LE
-
CHAR
-
BYTES
-
BLOCK_POS
-
BLOCK_HIT_RESULT
-
COMPOUND_TAG
-
STRING
-
ENUM
-
VAR_UINT
-
VAR_ULONG
-
FIXED_INT
-
VAR_INT
-
VAR_LONG
-
CUSTOM_MARKER
Not a data type. Instead this is used to record positional information by the sender viaNetByteBuf.writeMarker(String) -
__UNUSED__1
-
__UNUSED__2
-
__UNUSED__3
-
__UNUSED__4
-
-
Field Details
-
appender
public final alexiil.mc.lib.net.CheckingNetByteBuf.NetMethod.NetMethodAppender appender
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-