4jcraft/targets/minecraft/world/entity/monster/Enemy.cpp
2026-04-09 15:24:13 +10:00

14 lines
355 B
C++

#include "Enemy.h"
#include <memory>
#include "java/Class.h"
#include "minecraft/world/entity/Entity.h"
class EntitySelector;
EntitySelector* Enemy::ENEMY_SELECTOR = new Enemy::EnemyEntitySelector();
bool Enemy::EnemyEntitySelector::matches(std::shared_ptr<Entity> entity) const {
return (entity != nullptr) && entity->instanceof (eTYPE_ENEMY);
}