Search in sources :

Example 1 with EntityPathNavigateDrone

use of me.desht.pneumaticcraft.common.ai.EntityPathNavigateDrone in project pnc-repressurized by TeamPneumatic.

the class CoordTrackUpgradeHandler method getDronePath.

public static Path getDronePath(EntityPlayer player, BlockPos pos) {
    World world = player.world;
    EntityDrone drone = new EntityDrone(world);
    drone.setPosition(player.posX, player.posY - 2, player.posZ);
    return new EntityPathNavigateDrone(drone, world).getPathToPos(pos);
}
Also used : EntityPathNavigateDrone(me.desht.pneumaticcraft.common.ai.EntityPathNavigateDrone) EntityDrone(me.desht.pneumaticcraft.common.entity.living.EntityDrone) World(net.minecraft.world.World)

Aggregations

EntityPathNavigateDrone (me.desht.pneumaticcraft.common.ai.EntityPathNavigateDrone)1 EntityDrone (me.desht.pneumaticcraft.common.entity.living.EntityDrone)1 World (net.minecraft.world.World)1