Class MovementVectorType

java.lang.Object
com.viaversion.viaversion.api.type.Type<Vector3d>
com.viaversion.viaversion.api.type.types.math.MovementVectorType
All Implemented Interfaces:
ByteBufReader<Vector3d>, ByteBufWriter<Vector3d>, CodecWriter<Vector3d>

public class MovementVectorType extends Type<Vector3d>
  • Constructor Details

    • MovementVectorType

      public MovementVectorType()
  • Method Details

    • read

      public Vector3d read(io.netty.buffer.ByteBuf buffer)
      Description copied from interface: ByteBufReader
      Reads a value from a ByteBuf.
      Parameters:
      buffer - buffer to read from
      Returns:
      type based on the class type
    • write

      public void write(io.netty.buffer.ByteBuf buffer, Vector3d vec)
      Description copied from interface: ByteBufWriter
      Writes an object to a type to a ByteBuf.
      Parameters:
      buffer - buffer to write to
      vec - value to write