Search in sources :

Example 1 with ResourceIdBlock

use of buildcraft.api.robots.ResourceIdBlock in project BuildCraft by BuildCraft.

the class BoardRobotPlanter method releaseBlockFound.

private void releaseBlockFound() {
    if (blockFound != null) {
        robot.getRegistry().release(new ResourceIdBlock(blockFound));
        blockFound = null;
    }
}
Also used : ResourceIdBlock(buildcraft.api.robots.ResourceIdBlock)

Example 2 with ResourceIdBlock

use of buildcraft.api.robots.ResourceIdBlock in project BuildCraft by BuildCraft.

the class BoardRobotFarmer method releaseBlockFound.

private void releaseBlockFound() {
    if (blockFound != null) {
        robot.getRegistry().release(new ResourceIdBlock(blockFound));
        blockFound = null;
    }
}
Also used : ResourceIdBlock(buildcraft.api.robots.ResourceIdBlock)

Example 3 with ResourceIdBlock

use of buildcraft.api.robots.ResourceIdBlock in project BuildCraft by BuildCraft.

the class BoardRobotStripes method releaseBlockFound.

private void releaseBlockFound() {
    if (blockFound != null) {
        robot.getRegistry().release(new ResourceIdBlock(blockFound));
        blockFound = null;
    }
}
Also used : ResourceIdBlock(buildcraft.api.robots.ResourceIdBlock)

Example 4 with ResourceIdBlock

use of buildcraft.api.robots.ResourceIdBlock in project BuildCraft by BuildCraft.

the class BoardRobotGenericSearchBlock method releaseBlockFound.

protected void releaseBlockFound(boolean success) {
    if (blockFound != null) {
        // TODO: if !ai.success() -> can't break block, blacklist it
        robot.getRegistry().release(new ResourceIdBlock(blockFound));
        blockFound = null;
    }
}
Also used : ResourceIdBlock(buildcraft.api.robots.ResourceIdBlock)

Example 5 with ResourceIdBlock

use of buildcraft.api.robots.ResourceIdBlock in project BuildCraft by BuildCraft.

the class AIRobotSearchAndGotoBlock method releaseBlockFound.

private void releaseBlockFound() {
    if (blockFound != null) {
        robot.getRegistry().release(new ResourceIdBlock(blockFound));
        blockFound = null;
    }
}
Also used : ResourceIdBlock(buildcraft.api.robots.ResourceIdBlock)

Aggregations

ResourceIdBlock (buildcraft.api.robots.ResourceIdBlock)10 IBlockFilter (buildcraft.core.lib.utils.IBlockFilter)3 AIRobotSearchAndGotoBlock (buildcraft.robotics.ai.AIRobotSearchAndGotoBlock)3 BlockPos (net.minecraft.util.math.BlockPos)3 World (net.minecraft.world.World)3 IWorldProperty (buildcraft.api.core.IWorldProperty)1 AggregateFilter (buildcraft.lib.inventory.filter.AggregateFilter)1 AIRobotFetchAndEquipItemStack (buildcraft.robotics.ai.AIRobotFetchAndEquipItemStack)1 AIRobotGotoStationAndUnloadFluids (buildcraft.robotics.ai.AIRobotGotoStationAndUnloadFluids)1 ItemStack (net.minecraft.item.ItemStack)1 FluidStack (net.minecraftforge.fluids.FluidStack)1