the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3class EntitySelector
4{
5public:
6 static const EntitySelector *ENTITY_STILL_ALIVE;
7 static const EntitySelector *CONTAINER_ENTITY_SELECTOR;
8
9 virtual bool matches(shared_ptr<Entity> entity) const = 0;
10};
11
12class AliveEntitySelector : public EntitySelector
13{
14public:
15 bool matches(shared_ptr<Entity> entity) const;
16};
17
18class ContainerEntitySelector : public EntitySelector
19{
20public:
21 bool matches(shared_ptr<Entity> entity) const;
22};
23
24class MobCanWearArmourEntitySelector : public EntitySelector
25{
26private:
27 shared_ptr<ItemInstance> item;
28
29public:
30 MobCanWearArmourEntitySelector(shared_ptr<ItemInstance> item);
31 bool matches(shared_ptr<Entity> entity) const;
32};