mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 06:53:24 +00:00
31 lines
537 B
Java
31 lines
537 B
Java
package appeng.api.me.tiles;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
/**
|
|
* An IPushable should return what dosn't fit, so that the crafting request cannot complete,
|
|
* stalling the action and saving your resources.
|
|
*/
|
|
public interface ITilePushable
|
|
{
|
|
/**
|
|
* is this pushable busy?
|
|
* @return
|
|
*/
|
|
boolean isBusy();
|
|
|
|
/**
|
|
* Attempt to send an item.
|
|
* @param out
|
|
* @return
|
|
*/
|
|
ItemStack pushItem( ItemStack out );
|
|
|
|
/**
|
|
* Test if a push is possible.
|
|
* @param out
|
|
* @return
|
|
*/
|
|
boolean canPushItem(ItemStack out);
|
|
}
|