4jcraft/Minecraft.World/AI/Goals/LeapAtTargetGoal.h
2026-03-06 20:39:58 -06:00

18 lines
303 B
C++

#pragma once
#include "Goal.h"
class LeapAtTargetGoal : public Goal
{
private:
Mob *mob; // Owner of this goal
std::weak_ptr<Mob> target;
float yd;
public:
LeapAtTargetGoal(Mob *mob, float yd);
virtual bool canUse();
virtual bool canContinueToUse();
virtual void start();
};