Crafting progress might be a thing.

This commit is contained in:
AlgorithmX2
2014-05-07 19:59:05 -05:00
parent 1db9283eed
commit b4e8dada38
2 changed files with 14 additions and 0 deletions
@@ -8,6 +8,7 @@ import appeng.api.config.RedstoneMode;
import appeng.api.config.SecurityPermissions; import appeng.api.config.SecurityPermissions;
import appeng.api.config.Settings; import appeng.api.config.Settings;
import appeng.api.crafting.ICraftingPatternDetails; import appeng.api.crafting.ICraftingPatternDetails;
import appeng.container.guisync.GuiSync;
import appeng.container.slot.SlotMACPattern; import appeng.container.slot.SlotMACPattern;
import appeng.container.slot.SlotOutput; import appeng.container.slot.SlotOutput;
import appeng.container.slot.SlotRestrictedInput; import appeng.container.slot.SlotRestrictedInput;
@@ -19,8 +20,11 @@ import appeng.util.Platform;
public class ContainerMAC extends ContainerUpgradeable public class ContainerMAC extends ContainerUpgradeable
{ {
TileMolecularAssembler tma;
public ContainerMAC(InventoryPlayer ip, TileMolecularAssembler te) { public ContainerMAC(InventoryPlayer ip, TileMolecularAssembler te) {
super( ip, te ); super( ip, te );
tma = te;
} }
public int availableUpgrades() public int availableUpgrades()
@@ -40,6 +44,9 @@ public class ContainerMAC extends ContainerUpgradeable
return false; return false;
} }
@GuiSync(4)
public int craftProgress = 0;
public boolean isValidItemForSlot(int slotIndex, ItemStack i) public boolean isValidItemForSlot(int slotIndex, ItemStack i)
{ {
IInventory mac = myte.getInventoryByName( "mac" ); IInventory mac = myte.getInventoryByName( "mac" );
@@ -101,6 +108,8 @@ public class ContainerMAC extends ContainerUpgradeable
this.rsMode = (RedstoneMode) this.myte.getConfigManager().getSetting( Settings.REDSTONE_CONTROLLED ); this.rsMode = (RedstoneMode) this.myte.getConfigManager().getSetting( Settings.REDSTONE_CONTROLLED );
} }
craftProgress = this.tma.getCraftingProgress();
standardDetectAndSendChanges(); standardDetectAndSendChanges();
} }
@@ -154,4 +154,9 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
} }
public int getCraftingProgress()
{
return 0;
}
} }