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

View File

@@ -0,0 +1,38 @@
#ifndef NET_MINECRAFT_WORLD_ENTITY_AI_CONTROL__MoveControl_H__
#define NET_MINECRAFT_WORLD_ENTITY_AI_CONTROL__MoveControl_H__
//package net.minecraft.world.entity.ai.control;
#include "Control.h"
#include "../../Mob.h"
#include "../../../../util/Mth.h"
class MoveControl: public Control
{
static const float MAX_TURN;
public:
static const float MIN_SPEED;
static const float MIN_SPEED_SQR;
MoveControl(Mob* mob);
bool hasWanted();
float getSpeed();
void setWantedPosition(float x, float y, float z, float speed);
void tick();
private:
float rotlerp(float a, float b, float max);
Mob* mob;
float wantedX;
float wantedY;
float wantedZ;
float speed;
bool _hasWanted;
};
#endif /*NET_MINECRAFT_WORLD_ENTITY_AI_CONTROL__MoveControl_H__*/