Files
EnderIO/common/appeng/api/me/util/IAssemblerCluster.java
T
2014-02-13 14:01:40 +08:00

38 lines
698 B
Java

package appeng.api.me.util;
import net.minecraft.tileentity.TileEntity;
/**
* Definition for a MAC
*
*/
public interface IAssemblerCluster {
/**
* cycles the cpus, should be called once a tick, if called more, crafting will accelerate.
*/
public void cycleCpus();
/**
* Tells the MAC one of the cpus was used.
*/
void addCraft();
/**
* is there a CPU available for Crafting?
* @return hasCPUReady
*/
boolean canCraft();
/**
* Gets a TileAssembler from the MAC
* @param assemblerOffset
* @return TileEntity for that Assembler or Null
*/
TileEntity getAssembler( int assemblerOffset );
public int getLastOffset();
public void setLastOffset( int x );
}