@Deprecated public abstract class AbstractParticleType extends Type<Particle>
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractParticleType.ParticleReader
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected it.unimi.dsi.fastutil.ints.Int2ObjectMap<AbstractParticleType.ParticleReader> |
readers
Deprecated.
|
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, GLOBAL_POSITION, INT, INT_ARRAY, ITEM, ITEM_ARRAY, LONG, LONG_ARRAY, LONG_ARRAY_PRIMITIVE, NBT, NBT_ARRAY, NOTHING, OPTIONAL_BYTE_ARRAY_PRIMITIVE, OPTIONAL_COMPONENT, OPTIONAL_FLOAT, OPTIONAL_GLOBAL_POSITION, OPTIONAL_PLAYER_MESSAGE_SIGNATURE, OPTIONAL_POSITION, OPTIONAL_POSITION_1_14, OPTIONAL_PROFILE_KEY, OPTIONAL_STRING, OPTIONAL_UUID, OPTIONAL_VAR_INT, PLAYER_MESSAGE_SIGNATURE, PLAYER_MESSAGE_SIGNATURE_ARRAY, POSITION, POSITION1_14, PROFILE_KEY, QUATERNION, REMAINING_BYTES, ROTATION, SHORT, SHORT_ARRAY, SHORT_BYTE_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, VECTOR3F, VILLAGER_DATA
Modifier | Constructor and Description |
---|---|
protected |
AbstractParticleType()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractParticleType.ParticleReader |
blockHandler()
Deprecated.
|
protected AbstractParticleType.ParticleReader |
dustHandler()
Deprecated.
|
protected AbstractParticleType.ParticleReader |
dustTransitionHandler()
Deprecated.
|
protected AbstractParticleType.ParticleReader |
itemHandler(Type<Item> itemType)
Deprecated.
|
Particle |
read(io.netty.buffer.ByteBuf buffer)
Deprecated.
Reads a value from a ByteBuf.
|
protected AbstractParticleType.ParticleReader |
vibrationHandler(Type<Position> positionType)
Deprecated.
|
void |
write(io.netty.buffer.ByteBuf buffer,
Particle object)
Deprecated.
Writes an object to a type to a ByteBuf.
|
getBaseClass, getOutputClass, getTypeName, toString
protected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<AbstractParticleType.ParticleReader> readers
public void write(io.netty.buffer.ByteBuf buffer, Particle object) throws java.lang.Exception
ByteBufWriter
buffer
- buffer to write toobject
- value to writejava.lang.Exception
- if it failed to writepublic Particle read(io.netty.buffer.ByteBuf buffer) throws java.lang.Exception
ByteBufReader
buffer
- buffer to read fromjava.lang.Exception
- if it failed readingprotected AbstractParticleType.ParticleReader blockHandler()
protected AbstractParticleType.ParticleReader itemHandler(Type<Item> itemType)
protected AbstractParticleType.ParticleReader dustHandler()
protected AbstractParticleType.ParticleReader dustTransitionHandler()
protected AbstractParticleType.ParticleReader vibrationHandler(Type<Position> positionType)