mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 18:44:26 +00:00
Added a ton of code regarding Flying doesn't work correctly. Please Uncomment them by searching for Comment: // Fly Change Fixed Hidden Parts not Saving
26 lines
571 B
Java
26 lines
571 B
Java
package noppes.npcs.ai.pathfinder;
|
|
|
|
import net.minecraft.entity.EntityLiving;
|
|
import net.minecraft.pathfinding.PathFinder;
|
|
import net.minecraft.world.World;
|
|
|
|
public class PathNavigateFlying extends PathNavigateSwimmer {
|
|
|
|
public PathNavigateFlying(EntityLiving p_i45873_1_, World worldIn) {
|
|
super(p_i45873_1_, worldIn);
|
|
}
|
|
|
|
protected PathFinder func_179679_a()
|
|
{
|
|
return new NPCPathFinder(new FlyNodeProcessor());
|
|
}
|
|
|
|
/**
|
|
* If on ground or swimming and can swim
|
|
*/
|
|
protected boolean canNavigate()
|
|
{
|
|
return true;
|
|
}
|
|
}
|