the whole game

This commit is contained in:
Kolyah35
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

44
src/world/entity/ai/goal/Goal.h Executable file
View File

@@ -0,0 +1,44 @@
#ifndef NET_MINECRAFT_WORLD_ENTITY_AI_GOAL__Goal_H__
#define NET_MINECRAFT_WORLD_ENTITY_AI_GOAL__Goal_H__
//package net.minecraft.world.entity.ai.goal;
class Goal
{
public:
Goal()
: _requiredControlFlags(0)
{}
virtual ~Goal() {}
virtual bool canUse() = 0;
virtual bool canContinueToUse() {
return canUse();
}
virtual bool canInterrupt() {
return true;
}
virtual void start() {
}
virtual void stop() {
}
virtual void tick() {
}
void setRequiredControlFlags(int requiredControlFlags) {
_requiredControlFlags = requiredControlFlags;
}
int getRequiredControlFlags() {
return _requiredControlFlags;
}
private:
int _requiredControlFlags;
};
#endif /*NET_MINECRAFT_WORLD_ENTITY_AI_GOAL__Goal_H__*/