4jcraft/targets/minecraft/world/entity/ai/goal/TakeFlowerGoal.h
2026-04-01 13:27:58 -05:00

25 lines
393 B
C++

#pragma once
#include <memory>
#include "Goal.h"
class Villager;
class VillagerGolem;
class TakeFlowerGoal : public Goal {
private:
Villager* villager;
std::weak_ptr<VillagerGolem> golem;
int pickupTick;
bool takeFlower;
public:
TakeFlowerGoal(Villager* villager);
bool canUse();
bool canContinueToUse();
void start();
void stop();
void tick();
};