Class FakeEnumType
java.lang.Object
com.viaversion.viaversion.api.type.Type<Integer>
com.viaversion.viaversion.api.type.types.VarIntType
com.viaversion.viaversion.api.type.types.FakeEnumType
- All Implemented Interfaces:
ByteBufReader<Integer>
,ByteBufWriter<Integer>
,CodecWriter<Integer>
,TypeConverter<Integer>
For enum types with hardcoded custom ids.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFakeEnumType
(FakeEnumType.Entry... entries) FakeEnumType
(List<String> initialNames, FakeEnumType.Entry... remainingEntries) -
Method Summary
Methods inherited from class com.viaversion.viaversion.api.type.types.VarIntType
from, read, readPrimitive, varIntLength, write, writePrimitive
Methods inherited from class com.viaversion.viaversion.api.type.Type
getBaseClass, getOutputClass, getTypeName, toString
-
Constructor Details
-
FakeEnumType
-
FakeEnumType
-
-
Method Details
-
write
- Specified by:
write
in interfaceCodecWriter<Integer>
- Overrides:
write
in classVarIntType
-
entries
-