mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-27 04:23:37 +00:00
14 lines
354 B
C++
14 lines
354 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);
|
|
} |