Class BlockPositionType1_14
java.lang.Object
com.viaversion.viaversion.api.type.Type<BlockPosition>
com.viaversion.viaversion.api.type.types.math.BlockPositionType1_14
- All Implemented Interfaces:
ByteBufReader<BlockPosition>,ByteBufWriter<BlockPosition>,CodecWriter<BlockPosition>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(io.netty.buffer.ByteBuf buffer) Reads a value from a ByteBuf.voidwrite(Ops ops, BlockPosition value) voidwrite(io.netty.buffer.ByteBuf buffer, BlockPosition object) Writes an object to a type to a ByteBuf.Methods inherited from class com.viaversion.viaversion.api.type.Type
getBaseClass, getOutputClass, getTypeName, toString
-
Constructor Details
-
BlockPositionType1_14
public BlockPositionType1_14()
-
-
Method Details
-
read
Description copied from interface:ByteBufReaderReads a value from a ByteBuf.- Parameters:
buffer- buffer to read from- Returns:
- type based on the class type
-
write
Description copied from interface:ByteBufWriterWrites an object to a type to a ByteBuf.- Parameters:
buffer- buffer to write toobject- value to write
-
write
- Specified by:
writein interfaceCodecWriter<BlockPosition>- Overrides:
writein classType<BlockPosition>
-