blob: 1e05c3777e9853880554eba3aa2243235bc252f5 [file] [log] [blame] [raw]
package universalelectricity.prefab.multiblock;
import net.minecraft.src.TileEntity;
import universalelectricity.core.Vector3;
/**
* Interface to be applied to tile entity blocks that occupies more than one
* block space. Useful for large machines.
*
* @author Calclavia
*
*/
public interface IMultiBlock extends IBlockActivate
{
/**
* Called when this multiblock is created
*
* @param placedPosition
* - The position the block was placed at
*/
public void onCreate(Vector3 placedPosition);
/**
* Called when one of the multiblocks of this block is destroyed
*
* @param callingBlock
* - The tile entity who called the onDestroy function
*/
public void onDestroy(TileEntity callingBlock);
}