Entity names in F3

This commit is contained in:
Bigjango13 2024-10-27 01:32:39 -07:00
parent ccd4a7b73b
commit 1ff1ceaff8

View File

@ -128,8 +128,8 @@ static std::vector<std::string> get_debug_info_right(const Minecraft *minecraft)
y = entity->y - entity->height_offset; y = entity->y - entity->height_offset;
z = entity->z; z = entity->z;
type = "Entity"; type = "Entity";
type_info.push_back("Type ID: " + std::to_string(entity->getEntityTypeId())); // TODO: Specify name when RJ PR is merged
type_info.push_back("ID: " + std::to_string(entity->id)); type_info.push_back("ID: " + std::to_string(entity->id));
type_info.push_back("Type: " + misc_get_entity_names()[entity->getEntityTypeId()] + " (" + std::to_string(entity->getEntityTypeId()) + ")");
if (entity->isMob()) { if (entity->isMob()) {
Mob *mob = (Mob *) entity; Mob *mob = (Mob *) entity;
type_info.push_back("Health: " + std::to_string(mob->health) + '/' + std::to_string(mob->getMaxHealth())); type_info.push_back("Health: " + std::to_string(mob->health) + '/' + std::to_string(mob->getMaxHealth()));