first commit

This commit is contained in:
murdle
2026-03-01 02:38:58 +02:00
commit 19250b9db4
19111 changed files with 4358159 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#include "stdafx.h"
#include "net.minecraft.world.entity.ai.navigation.h"
#include "net.minecraft.world.entity.h"
#include "net.minecraft.world.level.h"
#include "RestrictSunGoal.h"
RestrictSunGoal::RestrictSunGoal(PathfinderMob *mob)
{
this->mob = mob;
}
bool RestrictSunGoal::canUse()
{
return mob->level->isDay();
}
void RestrictSunGoal::start()
{
mob->getNavigation()->setAvoidSun(true);
}
void RestrictSunGoal::stop()
{
mob->getNavigation()->setAvoidSun(false);
}