}
@Override
public void doWork(PowerHandler workProvider) {
if (workProvider.useEnergy(powerToBreakABlock, powerToBreakABlock, true) == powerToBreakABlock) {
ForgeDirection o = getOpenOrientation();
if (o != ForgeDirection.UNKNOWN) {
Position p = new Position(container.xCoord, container.yCoord, container.zCoord, o);
p.moveForwards(1.0);
List<ItemStack> stacks = BlockUtil.getItemStackFromBlock(container.worldObj, (int) p.x, (int) p.y, (int) p.z);
if (stacks != null) {
for (ItemStack s : stacks) {
if (s != null) {
this.container.injectItem(s, true, o.getOpposite());
}
}
}
container.worldObj.setBlockToAir((int) p.x, (int) p.y, (int) p.z);