Merge pull request #116 from Bart97/master

Add a work scheduled and work done triggers to the assembly table
This commit is contained in:
SirSengir 2012-07-22 08:07:42 -07:00
commit 3d04befa64

View file

@ -24,7 +24,7 @@ import net.minecraft.src.buildcraft.core.network.PacketIds;
import net.minecraft.src.buildcraft.core.network.PacketUpdate;
import net.minecraft.src.buildcraft.core.network.TilePacketWrapper;
public class TileAssemblyTable extends TileEntity implements IInventory, IPipeConnection {
public class TileAssemblyTable extends TileEntity implements IMachine, IInventory, IPipeConnection {
ItemStack[] items = new ItemStack[12];
@ -433,4 +433,24 @@ public class TileAssemblyTable extends TileEntity implements IInventory, IPipeCo
iCrafting.updateCraftingInventoryInfo(container, 1, (int) energyStored);
}
@Override
public boolean isActive() {
return currentRecipe != null;
}
@Override
public boolean manageLiquids() {
return false;
}
@Override
public boolean manageSolids() {
return false;
}
@Override
public boolean allowActions() {
return false;
}
}