Class VehicleMovePacket

All Implemented Interfaces:
SendablePacket, ServerPacket, Readable, Writeable

public class VehicleMovePacket extends Object implements ServerPacket
  • Field Details

    • x

      public double x
    • y

      public double y
    • z

      public double z
    • yaw

      public float yaw
    • pitch

      public float pitch
  • Constructor Details

    • VehicleMovePacket

      public VehicleMovePacket()
      Default constructor, required for reflection operations.
  • Method Details

    • write

      public void write(@NotNull @NotNull BinaryWriter writer)
      Description copied from interface: Writeable
      Writes into a BinaryWriter.
      Specified by:
      write in interface Writeable
      writer - the writer to write to
    • read

      public void read(@NotNull @NotNull BinaryReader reader)
      Description copied from interface: Readable
      Reads from a BinaryReader.
      Specified by:
      read in interface Readable
      Specified by:
      read in interface ServerPacket
      reader - the reader to read from
    • getId

      public int getId()
      Description copied from interface: ServerPacket
      Gets the id of this packet.

      Written in the final buffer header so it needs to match the client id.

      Specified by:
      getId in interface ServerPacket
      the id of this packet