public override void Write(Vector3F value) { var mcfloat = new MinecraftFloat(Stream); mcfloat.Write(value.X); mcfloat.Write(value.Y); mcfloat.Write(value.Z); }
public override void Write(Rotation value) { var v = new MinecraftFloat(Stream); v.Write(value.Yaw); v.Write(value.Pitch); v.Write(value.Roll); }
public override Vector3F Read() { var mcfloat = new MinecraftFloat(Stream); return(new Vector3F(mcfloat.Read(), mcfloat.Read(), mcfloat.Read())); }
public override Rotation Read() { var v = new MinecraftFloat(Stream); return(new Rotation(v.Read(), v.Read(), v.Read())); }