Add work-related triggers to integration table

This commit is contained in:
Prototik 2014-05-01 10:34:19 +08:00
parent e12df17804
commit f11d9bfff8

View file

@ -8,6 +8,8 @@
*/ */
package buildcraft.silicon; package buildcraft.silicon;
import buildcraft.api.gates.IAction;
import buildcraft.core.IMachine;
import net.minecraft.inventory.IInventory; import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.ISidedInventory; import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
@ -22,7 +24,7 @@ import buildcraft.core.inventory.Transactor;
import buildcraft.core.utils.StringUtils; import buildcraft.core.utils.StringUtils;
import buildcraft.core.utils.Utils; import buildcraft.core.utils.Utils;
public class TileIntegrationTable extends TileLaserTableBase implements ISidedInventory { public class TileIntegrationTable extends TileLaserTableBase implements ISidedInventory, IMachine {
public static final int SLOT_INPUT_A = 0; public static final int SLOT_INPUT_A = 0;
public static final int SLOT_INPUT_B = 1; public static final int SLOT_INPUT_B = 1;
@ -232,4 +234,24 @@ public class TileIntegrationTable extends TileLaserTableBase implements ISidedIn
public boolean hasCustomInventoryName() { public boolean hasCustomInventoryName() {
return false; return false;
} }
@Override
public boolean isActive() {
return currentRecipe != null;
}
@Override
public boolean manageFluids() {
return false;
}
@Override
public boolean manageSolids() {
return false;
}
@Override
public boolean allowAction(IAction action) {
return false;
}
} }