minecraft-pi-reborn/mods/include/mods/chat/chat.h

27 lines
588 B
C++

#pragma once
#include <libreborn/libreborn.h>
#ifdef __cplusplus
#include <string>
// Send API Command
std::string chat_send_api_command(unsigned char *minecraft, char *str);
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifndef MCPI_SERVER_MODE
void chat_open();
unsigned int chat_get_counter();
#endif
// Override using the HOOK() macro to provide customized chat behavior.
void chat_send_message(unsigned char *server_side_network_handler, char *username, char *message);
void chat_handle_packet_send(unsigned char *minecraft, unsigned char *packet);
#ifdef __cplusplus
}
#endif