public class UnsignedShortType extends Type<Integer> implements TypeConverter<Integer>
BLOCK_CHANGE_RECORD, BLOCK_CHANGE_RECORD_ARRAY, BOOLEAN, BOOLEAN_ARRAY, BYTE, BYTE_ARRAY, BYTE_ARRAY_PRIMITIVE, COMPONENT, DOUBLE, DOUBLE_ARRAY, FLAT_ITEM, FLAT_ITEM_ARRAY, FLAT_ITEM_ARRAY_VAR_INT, FLAT_VAR_INT_ITEM, FLAT_VAR_INT_ITEM_ARRAY, FLAT_VAR_INT_ITEM_ARRAY_VAR_INT, FLOAT, FLOAT_ARRAY, INT, INT_ARRAY, ITEM, ITEM_ARRAY, LONG, LONG_ARRAY, NBT, NBT_ARRAY, NOTHING, OPTIONAL_COMPONENT, OPTIONAL_POSITION, OPTIONAL_POSITION_1_14, OPTIONAL_UUID, OPTIONAL_VAR_INT, POSITION, POSITION1_14, REMAINING_BYTES, ROTATION, SHORT, SHORT_ARRAY, STRING, STRING_ARRAY, UNSIGNED_BYTE, UNSIGNED_BYTE_ARRAY, UNSIGNED_SHORT, UNSIGNED_SHORT_ARRAY, UUID, UUID_ARRAY, UUID_INT_ARRAY, VAR_INT, VAR_INT_ARRAY, VAR_INT_ARRAY_PRIMITIVE, VAR_LONG, VAR_LONG_ARRAY, VAR_LONG_BLOCK_CHANGE_RECORD, VAR_LONG_BLOCK_CHANGE_RECORD_ARRAY, VECTOR, VILLAGER_DATA| Constructor and Description |
|---|
UnsignedShortType() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
from(Object o)
Convert from a type to the current type
|
Integer |
read(io.netty.buffer.ByteBuf buffer)
Read a value from a ByteBuf
|
void |
write(io.netty.buffer.ByteBuf buffer,
Integer object)
Write an object to a type to a ByteBuf
|
getBaseClass, getOutputClass, getTypeName, toStringpublic Integer read(io.netty.buffer.ByteBuf buffer)
ByteBufReaderread in interface ByteBufReader<Integer>buffer - The buffer to read from.public void write(io.netty.buffer.ByteBuf buffer,
Integer object)
ByteBufWriterwrite in interface ByteBufWriter<Integer>buffer - The buffer to write toobject - The object to writepublic Integer from(Object o)
TypeConverterfrom in interface TypeConverter<Integer>o - The input objectCopyright © 2016–2021. All rights reserved.