Class UnsignedByteType
java.lang.Object
com.viaversion.viaversion.api.type.Type<Short>
com.viaversion.viaversion.api.type.types.UnsignedByteType
- All Implemented Interfaces:
ByteBufReader<Short>,ByteBufWriter<Short>,CodecWriter<Short>,TypeConverter<Short>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvert from a type to the current typeread(io.netty.buffer.ByteBuf buffer) Reads a value from a ByteBuf.voidvoidWrites an object to a type to a ByteBuf.Methods inherited from class com.viaversion.viaversion.api.type.Type
getBaseClass, getOutputClass, getTypeName, toString
-
Field Details
-
MAX_VALUE
public static final int MAX_VALUE- See Also:
-
-
Constructor Details
-
UnsignedByteType
public UnsignedByteType()
-
-
Method Details
-
read
Description copied from interface:ByteBufReaderReads a value from a ByteBuf.- Specified by:
readin interfaceByteBufReader<Short>- Parameters:
buffer- buffer to read from- Returns:
- type based on the class type
-
write
Description copied from interface:ByteBufWriterWrites an object to a type to a ByteBuf.- Specified by:
writein interfaceByteBufWriter<Short>- Parameters:
buffer- buffer to write toobject- value to write
-
write
-
from
Description copied from interface:TypeConverterConvert from a type to the current type- Specified by:
fromin interfaceTypeConverter<Short>- Parameters:
o- The input object- Returns:
- The converted type as an object
-