Search in sources :

Example 1 with EntityPathNavigateDrone

use of pneumaticCraft.common.ai.EntityPathNavigateDrone in project PneumaticCraft by MineMaarten.

the class CoordTrackUpgradeHandler method getDronePath.

public static PathEntity getDronePath(EntityPlayer player, int x, int y, int z) {
    World worldObj = player.worldObj;
    EntityDrone drone = new EntityDrone(worldObj);
    drone.setPosition(player.posX, player.posY - 2, player.posZ);
    return new EntityPathNavigateDrone(drone, worldObj).getEntityPathToXYZ(drone, x, y, z, SEARCH_RANGE, true, true, false, true);
}
Also used : EntityPathNavigateDrone(pneumaticCraft.common.ai.EntityPathNavigateDrone) EntityDrone(pneumaticCraft.common.entity.living.EntityDrone) World(net.minecraft.world.World)

Aggregations

World (net.minecraft.world.World)1 EntityPathNavigateDrone (pneumaticCraft.common.ai.EntityPathNavigateDrone)1 EntityDrone (pneumaticCraft.common.entity.living.EntityDrone)1