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

27 lines
592 B
C
Raw Normal View History

2022-06-25 21:30:08 +00:00
#pragma once
#include <libreborn/libreborn.h>
2024-01-06 11:30:23 +00:00
#include <symbols/minecraft.h>
2022-06-25 21:30:08 +00:00
2022-06-27 01:17:52 +00:00
#ifdef __cplusplus
#include <string>
// Send API Command
2024-01-06 11:30:23 +00:00
std::string chat_send_api_command(Minecraft *minecraft, std::string str);
2022-06-27 01:17:52 +00:00
#endif
2022-06-25 21:30:08 +00:00
#ifdef __cplusplus
extern "C" {
#endif
#ifndef MCPI_SERVER_MODE
void chat_open();
#endif
// Override using the HOOK() macro to provide customized chat behavior.
2024-01-06 11:30:23 +00:00
void chat_send_message(ServerSideNetworkHandler *server_side_network_handler, char *username, char *message);
void chat_handle_packet_send(Minecraft *minecraft, ChatPacket *packet);
2022-06-25 21:30:08 +00:00
#ifdef __cplusplus
}
#endif