#pragma once #include #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-variable" // bool In C #ifndef __cplusplus typedef unsigned char bool; #endif // Globals typedef void (*renderCursor_t)(float x, float y, unsigned char *minecraft); static renderCursor_t renderCursor = (renderCursor_t) 0x5f414; typedef void (*sleepMs_t)(int32_t x); static sleepMs_t sleepMs = (sleepMs_t) 0x13a20; typedef int32_t (*sdl_key_to_minecraft_key_t)(int32_t sdl_key); static sdl_key_to_minecraft_key_t sdl_key_to_minecraft_key = (sdl_key_to_minecraft_key_t) 0x11c78; typedef void (*anGenBuffers_t)(int32_t count, uint32_t *buffers); static anGenBuffers_t anGenBuffers = (anGenBuffers_t) 0x7923c; static char **full_data_path = (char **) 0xdd10; // . static char **default_username = (char **) 0x1c250; // StevePi static char **minecraft_pi_version = (char **) 0x4b2a0; // v0.1.0 alpha static char **classic_options_button_text = (char **) 0x4af30; // Options static unsigned char **Item_sign = (unsigned char **) 0x1da764; // Item static unsigned char **Item_flintAndSteel = (unsigned char **) 0x1da680; // Item static unsigned char **Item_snowball = (unsigned char **) 0x1da770; // Item static unsigned char **Item_shears = (unsigned char **) 0x1da7b0; // Item static unsigned char **Item_egg = (unsigned char **) 0x1da790; // Item static unsigned char **Item_dye_powder = (unsigned char **) 0x1da7a0; // Item static unsigned char **Item_camera = (unsigned char **) 0x1da7cc; // Item static unsigned char **Tile_water = (unsigned char **) 0x1dfca4; // Tile static unsigned char **Tile_lava = (unsigned char **) 0x1dfe30; // Tile static unsigned char **Tile_calmWater = (unsigned char **) 0x1dfca8; // Tile static unsigned char **Tile_calmLava = (unsigned char **) 0x1dfe34; // Tile static unsigned char **Tile_glowingObsidian = (unsigned char **) 0x1e0014; // Tile static unsigned char **Tile_web = (unsigned char **) 0x1dfe70; // Tile static unsigned char **Tile_topSnow = (unsigned char **) 0x1dfc98; // Tile static unsigned char **Tile_ice = (unsigned char **) 0x1dfee8; // Tile static unsigned char **Tile_invisible_bedrock = (unsigned char **) 0x1dfef8; // Tile static unsigned char **Tile_netherReactor = (unsigned char **) 0x1e0018; // Tile static unsigned char **Tile_info_updateGame1 = (unsigned char **) 0x1dfdd4; // Tile static unsigned char **Tile_info_updateGame2 = (unsigned char **) 0x1dfdd0; // Tile static unsigned char **Tile_bedrock = (unsigned char **) 0x1dfe2c; // Tile static unsigned char **Tile_tallgrass = (unsigned char **) 0x1dfe74; // Tile static unsigned char **Tile_stoneSlab = (unsigned char **) 0x1dfdb8; // Tile static unsigned char **Tile_leaves = (unsigned char **) 0x1df374; // Tile static unsigned char **Tile_leaves_carried = (unsigned char **) 0x1e0020; // Tile static unsigned char **Tile_grass = (unsigned char **) 0x1dfc7c; // Tile static unsigned char **Tile_grass_carried = (unsigned char **) 0x1e001c; // Tile static float *InvGuiScale = (float *) 0x1949fc; // Structures struct AABB { float x1; float y1; float z1; float x2; float y2; float z2; }; struct LevelSettings { int32_t seed; int32_t game_type; }; struct RakNet_RakNetGUID { unsigned char data[10]; }; struct RakNet_SystemAddress { unsigned char data[20]; }; // Tile static unsigned char **Tile_tiles = (unsigned char **) 0x1def70; typedef void (*Tile_initTiles_t)(); static Tile_initTiles_t Tile_initTiles = (Tile_initTiles_t) 0x125bac; static uint32_t Tile_id_property_offset = 0x8; // int32_t static uint32_t Tile_category_property_offset = 0x3c; // int32_t // AppPlatform typedef bool (*AppPlatform_isPowerVR_t)(unsigned char *app_platform); static AppPlatform_isPowerVR_t AppPlatform_isPowerVR = (AppPlatform_isPowerVR_t) 0x12670; // Minecraft typedef void (*Minecraft_init_t)(unsigned char *minecraft); static Minecraft_init_t Minecraft_init = (Minecraft_init_t) 0x182c8; typedef void (*Minecraft_tickInput_t)(unsigned char *minecraft); static Minecraft_tickInput_t Minecraft_tickInput = (Minecraft_tickInput_t) 0x166a8; typedef void (*Minecraft_setIsCreativeMode_t)(unsigned char *, int32_t); static Minecraft_setIsCreativeMode_t Minecraft_setIsCreativeMode = (Minecraft_setIsCreativeMode_t) 0x17888; typedef int32_t (*Minecraft_isTouchscreen_t)(unsigned char *minecraft); static Minecraft_isTouchscreen_t Minecraft_isTouchscreen = (Minecraft_isTouchscreen_t) 0x16b38; typedef void (*Minecraft_setScreen_t)(unsigned char *minecraft, unsigned char *screen); static Minecraft_setScreen_t Minecraft_setScreen = (Minecraft_setScreen_t) 0x16388; typedef void (*Minecraft_tick_t)(unsigned char *minecraft, int32_t param_1, int32_t param_2); static Minecraft_tick_t Minecraft_tick = (Minecraft_tick_t) 0x17030; typedef void (*Minecraft_update_t)(unsigned char *minecraft); static Minecraft_update_t Minecraft_update = (Minecraft_update_t) 0x172e4; typedef void (*Minecraft_hostMultiplayer_t)(unsigned char *minecraft, int32_t port); static Minecraft_hostMultiplayer_t Minecraft_hostMultiplayer = (Minecraft_hostMultiplayer_t) 0x16c50; typedef const char *(*Minecraft_getProgressMessage_t)(unsigned char *minecraft); static Minecraft_getProgressMessage_t Minecraft_getProgressMessage = (Minecraft_getProgressMessage_t) 0x17810; typedef uint32_t (*Minecraft_isLevelGenerated_t)(unsigned char *minecraft); static Minecraft_isLevelGenerated_t Minecraft_isLevelGenerated = (Minecraft_isLevelGenerated_t) 0x17824; typedef bool (*Minecraft_isCreativeMode_t)(unsigned char *minecraft); static Minecraft_isCreativeMode_t Minecraft_isCreativeMode = (Minecraft_isCreativeMode_t) 0x17a48; typedef void (*Minecraft_releaseMouse_t)(unsigned char *minecraft); static Minecraft_releaseMouse_t Minecraft_releaseMouse = (Minecraft_releaseMouse_t) 0x1634c; typedef void (*Minecraft_grabMouse_t)(unsigned char *minecraft); static Minecraft_grabMouse_t Minecraft_grabMouse = (Minecraft_grabMouse_t) 0x1632c; typedef void (*Minecraft_leaveGame_t)(unsigned char *minecraft, bool save_remote_level); static Minecraft_leaveGame_t Minecraft_leaveGame = (Minecraft_leaveGame_t) 0x1653c; typedef int (*Minecraft_handleBack_t)(unsigned char *minecraft, bool do_nothing); static uint32_t Minecraft_handleBack_vtable_offset = 0x34; typedef unsigned char *(*Minecraft_getCreator_t)(unsigned char *minecraft); static Minecraft_getCreator_t Minecraft_getCreator = (Minecraft_getCreator_t) 0x17d74; typedef unsigned char *(*Minecraft_getLevelSource_t)(unsigned char *minecraft); static Minecraft_getLevelSource_t Minecraft_getLevelSource = (Minecraft_getLevelSource_t) 0x1783c; typedef void (*Minecraft_handleMouseDown_t)(unsigned char *minecraft, int param_1, bool can_destroy); static Minecraft_handleMouseDown_t Minecraft_handleMouseDown = (Minecraft_handleMouseDown_t) 0x15dc8; static uint32_t Minecraft_screen_width_property_offset = 0x20; // int32_t static uint32_t Minecraft_screen_height_property_offset = 0x24; // int32_t static uint32_t Minecraft_network_handler_property_offset = 0x158; // NetEventCallback * static uint32_t Minecraft_rak_net_instance_property_offset = 0x154; // RakNetInstance * static uint32_t Minecraft_level_property_offset = 0x16c; // Level * static uint32_t Minecraft_textures_property_offset = 0x148; // Textures * static uint32_t Minecraft_game_mode_property_offset = 0x144; // GameMode * static uint32_t Minecraft_player_property_offset = 0x170; // LocalPlayer * static uint32_t Minecraft_options_property_offset = 0x28; // Options static uint32_t Minecraft_hit_result_property_offset = 0xc1c; // HitResult static uint32_t Minecraft_progress_property_offset = 0xc44; // int32_t static uint32_t Minecraft_command_server_property_offset = 0xca4; // CommandServer * static uint32_t Minecraft_screen_property_offset = 0xbf4; // Screen * static uint32_t Minecraft_gui_property_offset = 0x17c; // Gui static uint32_t Minecraft_pov_property_offset = 0x170; // Mob * static uint32_t Minecraft_targeted_x_property_offset = 0xc20; // int32_t static uint32_t Minecraft_targeted_y_property_offset = 0xc24; // int32_t static uint32_t Minecraft_targeted_z_property_offset = 0xc28; // int32_t // GameRenderer typedef void (*GameRenderer_render_t)(unsigned char *game_renderer, float param_1); static GameRenderer_render_t GameRenderer_render = (GameRenderer_render_t) 0x619c0; typedef void (*GameRenderer_setupCamera_t)(unsigned char *game_renderer, float param_1, int param_2); static GameRenderer_setupCamera_t GameRenderer_setupCamera = (GameRenderer_setupCamera_t) 0x5fe80; static uint32_t GameRenderer_minecraft_property_offset = 0x4; // Minecraft * // ParticleEngine typedef void (*ParticleEngine_render_t)(unsigned char *particle_engine, unsigned char *entity, float param_2); static ParticleEngine_render_t ParticleEngine_render = (ParticleEngine_render_t) 0x586a8; // Mouse typedef int (*Mouse_get_t)(); static Mouse_get_t Mouse_getX = (Mouse_get_t) 0x13480; static Mouse_get_t Mouse_getY = (Mouse_get_t) 0x13490; // CommandServer static uint32_t CommandServer_minecraft_property_offset = 0x14; // Minecraft * // ServerLevel #define SERVER_LEVEL_SIZE 0xb80 typedef unsigned char *(*ServerLevel_t)(unsigned char *server_level, unsigned char *storage, unsigned char *name, struct LevelSettings *settings, int param_4, unsigned char *dimension); static ServerLevel_t ServerLevel = (ServerLevel_t) 0x9b6c4; // Packet typedef void (*Packet_read_t)(unsigned char *packet, unsigned char *bit_stream); // LoginPacket static Packet_read_t LoginPacket_read = (Packet_read_t) 0x8fc4c; static void *LoginPacket_read_vtable_addr = (void *) 0x169e64; static uint32_t LoginPacket_username_property_offset = 0xc; // RakString // StartGamePacket typedef void (*StartGamePacket_read_t)(unsigned char *packet, unsigned char *bit_stream); static StartGamePacket_read_t StartGamePacket_read = (StartGamePacket_read_t) 0x96e50; static void *StartGamePacket_read_vtable_addr = (void *) 0x16a2cc; static uint32_t StartGamePacket_game_mode_property_offset = 0x14; // int32_t // ChatPacket static uint32_t ChatPacket_message_property_offset = 0xc; // char * // Vec3 typedef struct { float x; float y; float z; } Vec3; // HitResult typedef struct { int32_t type; int32_t x; int32_t y; int32_t z; int32_t side; Vec3 exact; unsigned char *entity; unsigned char unknown; } HitResult; // Options static uint32_t Options_fancy_graphics_property_offset = 0x17; // unsigned char / bool static uint32_t Options_game_difficulty_property_offset = 0xe8; // int32_t static uint32_t Options_split_controls_property_offset = 0x105; // unsigned char / bool static uint32_t Options_3d_anaglyph_property_offset = 0x15; // unsigned char / bool static uint32_t Options_ambient_occlusion_property_offset = 0x18; // unsigned char / bool static uint32_t Options_hide_gui_property_offset = 0xec; // unsigned char / bool static uint32_t Options_third_person_property_offset = 0xed; // unsigned char / bool static uint32_t Options_render_distance_property_offset = 0x10; // int32_t static uint32_t Options_sound_property_offset = 0x4; // int32_t static uint32_t Options_debug_property_offset = 0xee; // unsigned char / bool static uint32_t Options_server_visible_property_offset = 0x104; // unsigned char / bool // MouseBuildInput typedef int32_t (*MouseBuildInput_tickBuild_t)(unsigned char *mouse_build_input, unsigned char *player, uint32_t *build_action_intention_return); static MouseBuildInput_tickBuild_t MouseBuildInput_tickBuild = (MouseBuildInput_tickBuild_t) 0x19118; static void *MouseBuildInput_tickBuild_vtable_addr = (void *) 0x16405c; // ItemInstance typedef struct { int32_t count; int32_t id; int32_t auxiliary; } ItemInstance; typedef ItemInstance *(*ItemInstance_constructor_t)(ItemInstance *item_instance, unsigned char *item); static ItemInstance_constructor_t ItemInstance_constructor_item = (ItemInstance_constructor_t) 0xdf40c; static ItemInstance_constructor_t ItemInstance_constructor_tile = (ItemInstance_constructor_t) 0xdf3c8; typedef ItemInstance *(*ItemInstance_constructor_extra_t)(ItemInstance *item_instance, unsigned char *item, int32_t count, int32_t auxiliary); static ItemInstance_constructor_extra_t ItemInstance_constructor_tile_extra = (ItemInstance_constructor_extra_t) 0xdf3fc; static ItemInstance_constructor_extra_t ItemInstance_constructor_item_extra = (ItemInstance_constructor_extra_t) 0xdf440; typedef int32_t (*ItemInstance_getMaxStackSize_t)(ItemInstance *item_instance); static ItemInstance_getMaxStackSize_t ItemInstance_getMaxStackSize = (ItemInstance_getMaxStackSize_t) 0xdf5b0; // Item #define ITEM_SIZE 0x24 #define ITEM_VTABLE_SIZE 0x94 static unsigned char **Item_items = (unsigned char **) 0x1d9e80; static unsigned char *Item_vtable = (unsigned char *) 0x16fdf0; typedef void (*Item_initItems_t)(); static Item_initItems_t Item_initItems = (Item_initItems_t) 0xd99cc; typedef void (*Item_setIcon_t)(unsigned char *item, int32_t texture_x, int32_t texture_y); static uint32_t Item_setIcon_vtable_offset = 0x18; typedef int32_t (*Item_getIcon_t)(unsigned char *item, int32_t auxiliary); static uint32_t Item_getIcon_vtable_offset = 0x14; typedef int32_t (*Item_useOn_t)(unsigned char *item, ItemInstance *item_instance, unsigned char *player, unsigned char *level, int32_t x, int32_t y, int32_t z, int32_t hit_side, float hit_x, float hit_y, float hit_z); static uint32_t Item_useOn_vtable_offset = 0x20; static uint32_t Item_id_property_offset = 0x4; // int32_t static uint32_t Item_is_hand_equipped_property_offset = 0x18; // unsigned char / bool static uint32_t Item_is_stacked_by_data_property_offset = 0x19; // unsigned char / bool static uint32_t Item_category_property_offset = 0x10; // int32_t static uint32_t Item_max_damage_property_offset = 0x8; // int32_t static uint32_t Item_max_stack_size_property_offset = 0x14; // int32_t static uint32_t Item_crafting_remaining_item_property_offset = 0x1c; // Item * static uint32_t Item_description_id_property_offset = 0x20; // std::string // TileItem typedef unsigned char *(*TileItem_t)(unsigned char *tile_item, int32_t id); static TileItem_t TileItem = (TileItem_t) 0xce3a4; // AuxDataTileItem #define AUX_DATA_TILE_ITEM_SIZE 0x2c static unsigned char *AuxDataTileItem_vtable = (unsigned char *) 0x175220; static uint32_t AuxDataTileItem_icon_tile_property_offset = 0x28; // Tile * // Entity typedef bool (*Entity_hurt_t)(unsigned char *entity, unsigned char *attacker, int32_t damage); static uint32_t Entity_hurt_vtable_offset = 0xa4; static uint32_t Entity_x_property_offset = 0x4; // float static uint32_t Entity_y_property_offset = 0x8; // float static uint32_t Entity_z_property_offset = 0xc; // float static uint32_t Entity_yaw_property_offset = 0x40; // float static uint32_t Entity_pitch_property_offset = 0x44; // float static uint32_t Entity_old_x_property_offset = 0x28; // float static uint32_t Entity_old_y_property_offset = 0x2c; // float static uint32_t Entity_old_z_property_offset = 0x30; // float static uint32_t Entity_old_yaw_property_offset = 0x48; // float static uint32_t Entity_old_pitch_property_offset = 0x4c; // float // Mob typedef void (*Mob_actuallyHurt_t)(unsigned char *entity, int32_t damage); static Mob_actuallyHurt_t Mob_actuallyHurt = (Mob_actuallyHurt_t) 0xab2d4; static uint32_t Mob_actuallyHurt_vtable_offset = 0x1a0; typedef void (*Mob_die_t)(unsigned char *entity, unsigned char *cause); static uint32_t Mob_die_vtable_offset = 0x130; static uint32_t Mob_health_property_offset = 0xec; // int32_t // Player typedef int (*Player_isUsingItem_t)(unsigned char *player); static Player_isUsingItem_t Player_isUsingItem = (Player_isUsingItem_t) 0xceb24; typedef void (*Player_drop_t)(unsigned char *player, ItemInstance *item_instance, bool is_death); static uint32_t Player_drop_vtable_offset = 0x1f8; static uint32_t Player_username_property_offset = 0xbec; // std::string static uint32_t Player_inventory_property_offset = 0xbd8; // Inventory * // LocalPlayer static Mob_actuallyHurt_t LocalPlayer_actuallyHurt = (Mob_actuallyHurt_t) 0x59f48; static void *LocalPlayer_actuallyHurt_vtable_addr = (void *) 0x1676d0; static Mob_die_t LocalPlayer_die = (Mob_die_t) 0x5b208; static void *LocalPlayer_die_vtable_addr = (void *) 0x167660; static uint32_t LocalPlayer_minecraft_property_offset = 0xc58; // Minecraft * // ServerPlayer static void *ServerPlayer_actuallyHurt_vtable_addr = (void *) 0x16b020; static uint32_t ServerPlayer_minecraft_property_offset = 0xc54; // Minecraft * static uint32_t ServerPlayer_guid_property_offset = 0xc00; // RakNetGUID // Gui typedef void (*Gui_tick_t)(unsigned char *gui); static Gui_tick_t Gui_tick = (Gui_tick_t) 0x2b0b0; typedef void (*Gui_handleClick_t)(unsigned char *gui, int32_t param_2, int32_t param_3, int32_t param_4); static Gui_handleClick_t Gui_handleClick = (Gui_handleClick_t) 0x2a8f0; typedef void (*Gui_renderOnSelectItemNameText_t)(unsigned char *gui, int32_t param_1, unsigned char *font, int32_t param_2); static Gui_renderOnSelectItemNameText_t Gui_renderOnSelectItemNameText = (Gui_renderOnSelectItemNameText_t) 0x2bcb8; typedef void (*Gui_renderToolBar_t)(unsigned char *gui, float param_1, int32_t param_2, int32_t param_3); static Gui_renderToolBar_t Gui_renderToolBar = (Gui_renderToolBar_t) 0x2c104; typedef void (*Gui_renderChatMessages_t)(unsigned char *gui, int32_t y_offset, uint32_t max_messages, bool disable_fading, unsigned char *font); static Gui_renderChatMessages_t Gui_renderChatMessages = (Gui_renderChatMessages_t) 0x2bed8; static uint32_t Gui_minecraft_property_offset = 0x9f4; // Minecraft * static uint32_t Gui_selected_item_text_timer_property_offset = 0x9fc; // float // Textures typedef void (*Textures_tick_t)(unsigned char *textures, bool param_1); static Textures_tick_t Textures_tick = (Textures_tick_t) 0x6bee4; // GameMode Constructors #define CREATOR_MODE_SIZE 0x1c static void *CreatorMode = (void *) 0x1d254; #define SURVIVAL_MODE_SIZE 0x24 static void *SurvivalMode = (void *) 0x1fecc; // LevelData typedef uint32_t (*LevelData_getSpawnMobs_t)(unsigned char *level_data); static LevelData_getSpawnMobs_t LevelData_getSpawnMobs = (LevelData_getSpawnMobs_t) 0x1171e0; // Level typedef void (*Level_saveLevelData_t)(unsigned char *level); static Level_saveLevelData_t Level_saveLevelData = (Level_saveLevelData_t) 0xeef98; typedef void (*Level_setTileAndData_t)(unsigned char *level, int32_t x, int32_t y, int32_t z, int32_t id, int32_t data); static Level_setTileAndData_t Level_setTileAndData = (Level_setTileAndData_t) 0xefa8c; typedef int32_t (*Level_getTile_t)(unsigned char *level, int32_t x, int32_t y, int32_t z); static Level_getTile_t Level_getTile = (Level_getTile_t) 0xee670; typedef unsigned char *(*Level_getMaterial_t)(unsigned char *level, int32_t x, int32_t y, int32_t z); static Level_getMaterial_t Level_getMaterial = (Level_getMaterial_t) 0xee400; typedef HitResult (*Level_clip_t)(unsigned char *level, unsigned char *param_1, unsigned char *param_2, bool clip_liquids, bool param_3); static Level_clip_t Level_clip = (Level_clip_t) 0xf0038; static uint32_t Level_players_property_offset = 0x60; // std::vector // Material typedef bool (*Material_isSolid_t)(unsigned char *material); static uint32_t Material_isSolid_vtable_offset = 0x8; // LevelRenderer typedef void (*LevelRenderer_render_t)(unsigned char *level_renderer, unsigned char *mob, int param_1, float delta); static LevelRenderer_render_t LevelRenderer_render = (LevelRenderer_render_t) 0x67604; typedef void (*LevelRenderer_renderDebug_t)(unsigned char *level_renderer, struct AABB *aabb, float delta); static LevelRenderer_renderDebug_t LevelRenderer_renderDebug = (LevelRenderer_renderDebug_t) 0x65c34; static uint32_t LevelRenderer_minecraft_property_offset = 0x4; // Minecraft * // ProgressScreen #define PROGRESS_SCREEN_SIZE 0x40 typedef unsigned char *(*ProgressScreen_t)(unsigned char *obj); static ProgressScreen_t ProgressScreen = (ProgressScreen_t) 0x42a08; // OptionsScreen static void *OptionsScreen_handleBackEvent_vtable_addr = (void *) 0x165fb8; // FurnaceScreen typedef int32_t (*FurnaceScreen_handleAddItem_t)(unsigned char *furnace_screen, int32_t slot, ItemInstance const *item); static FurnaceScreen_handleAddItem_t FurnaceScreen_handleAddItem = (FurnaceScreen_handleAddItem_t) 0x3c534; static uint32_t FurnaceScreen_tile_entity_property_offset = 0x1b0; // FurnaceTileEntity * // FurnaceTileEntity typedef ItemInstance *(*FurnaceTileEntity_getItem_t)(unsigned char *furnace_tile_entity, int32_t slot); static uint32_t FurnaceTileEntity_getItem_vtable_offset = 0x28; // GuiComponent typedef void (*GuiComponent_blit_t)(unsigned char *component, int32_t x_dest, int32_t y_dest, int32_t x_src, int32_t y_src, int32_t width_dest, int32_t height_dest, int32_t width_src, int32_t height_src); static GuiComponent_blit_t GuiComponent_blit = (GuiComponent_blit_t) 0x2e398; // Screen typedef void (*Screen_init_t)(unsigned char *screen); typedef void (*Screen_tick_t)(unsigned char *screen); typedef void (*Screen_render_t)(unsigned char *screen, int32_t param_1, int32_t param_2, float param_3); static Screen_render_t Screen_render = (Screen_render_t) 0x2eaf4; typedef int32_t (*Screen_handleBackEvent_t)(unsigned char *screen, bool param_1); typedef void (*Screen_buttonClicked_t)(unsigned char *screen, unsigned char *button); typedef void (*Screen_setupPositions_t)(unsigned char *screen); static uint32_t Screen_minecraft_property_offset = 0x14; // Minecraft * static uint32_t Screen_rendered_buttons_property_offset = 0x18; // std::vector