public class ItemType extends BaseItemType
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 |
---|
ItemType() |
Modifier and Type | Method and Description |
---|---|
Item |
read(io.netty.buffer.ByteBuf buffer)
Read a value from a ByteBuf
|
void |
write(io.netty.buffer.ByteBuf buffer,
Item object)
Write an object to a type to a ByteBuf
|
getBaseClass
getOutputClass, getTypeName, toString
public Item read(io.netty.buffer.ByteBuf buffer) throws Exception
ByteBufReader
buffer
- The buffer to read from.Exception
- Throws exception if it failed reading.public void write(io.netty.buffer.ByteBuf buffer, Item object) throws Exception
ByteBufWriter
buffer
- The buffer to write toobject
- The object to writeException
- Throws if it failed to writeCopyright © 2016–2021. All rights reserved.