Crafting progress might be a thing.
This commit is contained in:
@@ -8,6 +8,7 @@ import appeng.api.config.RedstoneMode;
|
||||
import appeng.api.config.SecurityPermissions;
|
||||
import appeng.api.config.Settings;
|
||||
import appeng.api.crafting.ICraftingPatternDetails;
|
||||
import appeng.container.guisync.GuiSync;
|
||||
import appeng.container.slot.SlotMACPattern;
|
||||
import appeng.container.slot.SlotOutput;
|
||||
import appeng.container.slot.SlotRestrictedInput;
|
||||
@@ -19,8 +20,11 @@ import appeng.util.Platform;
|
||||
public class ContainerMAC extends ContainerUpgradeable
|
||||
{
|
||||
|
||||
TileMolecularAssembler tma;
|
||||
|
||||
public ContainerMAC(InventoryPlayer ip, TileMolecularAssembler te) {
|
||||
super( ip, te );
|
||||
tma = te;
|
||||
}
|
||||
|
||||
public int availableUpgrades()
|
||||
@@ -40,6 +44,9 @@ public class ContainerMAC extends ContainerUpgradeable
|
||||
return false;
|
||||
}
|
||||
|
||||
@GuiSync(4)
|
||||
public int craftProgress = 0;
|
||||
|
||||
public boolean isValidItemForSlot(int slotIndex, ItemStack i)
|
||||
{
|
||||
IInventory mac = myte.getInventoryByName( "mac" );
|
||||
@@ -101,6 +108,8 @@ public class ContainerMAC extends ContainerUpgradeable
|
||||
this.rsMode = (RedstoneMode) this.myte.getConfigManager().getSetting( Settings.REDSTONE_CONTROLLED );
|
||||
}
|
||||
|
||||
craftProgress = this.tma.getCraftingProgress();
|
||||
|
||||
standardDetectAndSendChanges();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user