public class ShortType extends Type<java.lang.Short> implements TypeConverter<java.lang.Short>
BLOCK_CHANGE_RECORD, BLOCK_CHANGE_RECORD_ARRAY, BLOCK_ENTITY1_18, BLOCK_ENTITY1_20_2, BOOLEAN, BYTE, BYTE_ARRAY_PRIMITIVE, CHUNK_POSITION, COMPONENT, COMPOUND_TAG, DOUBLE, 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, GLOBAL_POSITION, INT, ITEM, ITEM_ARRAY, ITEM1_13, ITEM1_13_2, ITEM1_13_2_ARRAY, ITEM1_13_2_SHORT_ARRAY, ITEM1_13_ARRAY, ITEM1_13_SHORT_ARRAY, ITEM1_20_2, ITEM1_20_2_ARRAY, ITEM1_8, ITEM1_8_SHORT_ARRAY, LONG, LONG_ARRAY_PRIMITIVE, NAMED_COMPOUND_TAG, NAMED_COMPOUND_TAG_ARRAY, NBT, NBT_ARRAY, OPTIONAL_BYTE_ARRAY_PRIMITIVE, OPTIONAL_COMPONENT, OPTIONAL_COMPOUND_TAG, OPTIONAL_FLOAT, OPTIONAL_GLOBAL_POSITION, OPTIONAL_PLAYER_MESSAGE_SIGNATURE, OPTIONAL_POSITION_1_14, OPTIONAL_POSITION1_8, OPTIONAL_PROFILE_KEY, OPTIONAL_SIGNATURE_BYTES, OPTIONAL_STRING, OPTIONAL_TAG, OPTIONAL_UUID, OPTIONAL_VAR_INT, PLAYER_MESSAGE_SIGNATURE, PLAYER_MESSAGE_SIGNATURE_ARRAY, POSITION1_14, POSITION1_8, PROFILE_ACTIONS_ENUM, PROFILE_KEY, QUATERNION, REMAINING_BYTES, ROTATION, SHORT, SHORT_BYTE_ARRAY, SIGNATURE_BYTES, STRING, STRING_ARRAY, TAG, UNSIGNED_BYTE, UNSIGNED_SHORT, UUID, UUID_ARRAY, VAR_INT, VAR_INT_ARRAY_PRIMITIVE, VAR_LONG, VAR_LONG_BLOCK_CHANGE_RECORD, VAR_LONG_BLOCK_CHANGE_RECORD_ARRAY, VECTOR, VECTOR3F, VILLAGER_DATA
Constructor and Description |
---|
ShortType() |
Modifier and Type | Method and Description |
---|---|
java.lang.Short |
from(java.lang.Object o)
Convert from a type to the current type
|
java.lang.Short |
read(io.netty.buffer.ByteBuf buffer)
Deprecated.
use
readPrimitive(ByteBuf) for manual reading to avoid wrapping |
short |
readPrimitive(io.netty.buffer.ByteBuf buffer) |
void |
write(io.netty.buffer.ByteBuf buffer,
java.lang.Short object)
Deprecated.
use
writePrimitive(ByteBuf, short) for manual reading to avoid wrapping |
void |
writePrimitive(io.netty.buffer.ByteBuf buffer,
short object) |
getBaseClass, getOutputClass, getTypeName, toString
public short readPrimitive(io.netty.buffer.ByteBuf buffer)
public void writePrimitive(io.netty.buffer.ByteBuf buffer, short object)
@Deprecated public java.lang.Short read(io.netty.buffer.ByteBuf buffer)
readPrimitive(ByteBuf)
for manual reading to avoid wrappingByteBufReader
read
in interface ByteBufReader<java.lang.Short>
buffer
- buffer to read from@Deprecated public void write(io.netty.buffer.ByteBuf buffer, java.lang.Short object)
writePrimitive(ByteBuf, short)
for manual reading to avoid wrappingByteBufWriter
write
in interface ByteBufWriter<java.lang.Short>
buffer
- buffer to write toobject
- value to writepublic java.lang.Short from(java.lang.Object o)
TypeConverter
from
in interface TypeConverter<java.lang.Short>
o
- The input object