2014-06-04 06:37:47 +02:00
|
|
|
package appeng.crafting;
|
|
|
|
|
|
|
|
import net.minecraft.world.World;
|
2014-06-05 05:54:01 +02:00
|
|
|
import appeng.api.networking.IGrid;
|
|
|
|
import appeng.api.networking.security.BaseActionSource;
|
2014-06-04 06:37:47 +02:00
|
|
|
|
|
|
|
public interface ICraftingHost
|
|
|
|
{
|
|
|
|
|
2014-06-05 02:47:13 +02:00
|
|
|
/**
|
2014-06-05 05:54:01 +02:00
|
|
|
* Get Crafting cache for the host.
|
2014-06-05 02:47:13 +02:00
|
|
|
*/
|
2014-06-05 05:54:01 +02:00
|
|
|
IGrid getGrid();
|
2014-06-05 02:47:13 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* required for crafting calculations.
|
|
|
|
*
|
|
|
|
* @return world the host is located in
|
|
|
|
*/
|
2014-06-04 06:37:47 +02:00
|
|
|
World getWorld();
|
|
|
|
|
2014-06-05 05:54:01 +02:00
|
|
|
/**
|
|
|
|
* get source of moving items around.
|
|
|
|
*
|
|
|
|
* @return {@link BaseActionSource} of host.
|
|
|
|
*/
|
|
|
|
BaseActionSource getActionSrc();
|
|
|
|
|
2014-06-04 06:37:47 +02:00
|
|
|
}
|