public class Chunk1_15Type extends Type<Chunk>
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 |
|---|
Chunk1_15Type() |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Type> |
getBaseClass() |
Chunk |
read(io.netty.buffer.ByteBuf input)
Read a value from a ByteBuf
|
void |
write(io.netty.buffer.ByteBuf output,
Chunk chunk)
Write an object to a type to a ByteBuf
|
getOutputClass, getTypeName, toStringpublic Chunk read(io.netty.buffer.ByteBuf input) throws Exception
ByteBufReaderinput - The buffer to read from.Exception - Throws exception if it failed reading.public void write(io.netty.buffer.ByteBuf output,
Chunk chunk)
throws Exception
ByteBufWriteroutput - The buffer to write tochunk - The object to writeException - Throws if it failed to writepublic Class<? extends Type> getBaseClass()
getBaseClass in class Type<Chunk>Copyright © 2016–2021. All rights reserved.