public class FloatType extends Type<Float> implements TypeConverter<Float>
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 |
---|
FloatType() |
Modifier and Type | Method and Description |
---|---|
Float |
from(Object o)
Convert from a type to the current type
|
Float |
read(io.netty.buffer.ByteBuf buffer)
Deprecated.
use
readPrimitive(ByteBuf) for manual reading to avoid wrapping |
float |
readPrimitive(io.netty.buffer.ByteBuf buffer) |
void |
write(io.netty.buffer.ByteBuf buffer,
Float object)
Deprecated.
use
writePrimitive(ByteBuf, float) for manual reading to avoid wrapping |
void |
writePrimitive(io.netty.buffer.ByteBuf buffer,
float object) |
getBaseClass, getOutputClass, getTypeName, toString
public float readPrimitive(io.netty.buffer.ByteBuf buffer)
public void writePrimitive(io.netty.buffer.ByteBuf buffer, float object)
@Deprecated public Float read(io.netty.buffer.ByteBuf buffer)
readPrimitive(ByteBuf)
for manual reading to avoid wrappingByteBufReader
read
in interface ByteBufReader<Float>
buffer
- The buffer to read from.@Deprecated public void write(io.netty.buffer.ByteBuf buffer, Float object)
writePrimitive(ByteBuf, float)
for manual reading to avoid wrappingByteBufWriter
write
in interface ByteBufWriter<Float>
buffer
- The buffer to write toobject
- The object to writepublic Float from(Object o)
TypeConverter
from
in interface TypeConverter<Float>
o
- The input objectCopyright © 2016–2021. All rights reserved.