28f62284a0
got around to moving this so Calc could help me with the clean up of it. So far i havn't changed much but will soon. The main focus for the next week on the mod will be just cleanup and bug fixing. I will also be moving the motor from steam power to here. The mod has alos been renamed since now it contains more than just pipes.
39 lines
1.2 KiB
Java
39 lines
1.2 KiB
Java
package dark.BasicUtilities.api;
|
|
|
|
import net.minecraftforge.common.ForgeDirection;
|
|
/**
|
|
* Based off of Calclavia's old wire API
|
|
* @author DarkGuardsman
|
|
*
|
|
*/
|
|
|
|
public interface ILiquidConsumer
|
|
{
|
|
/**
|
|
* onRecieveLiquid
|
|
* @param vol - The amount this block received.
|
|
* @param side - The side of the block in which the liquid came from.
|
|
* @parm type - The type of liquid being received
|
|
* @return vol - The amount liquid that can't be recieved
|
|
*/
|
|
public int onReceiveLiquid(Liquid type, int vol, ForgeDirection side);
|
|
|
|
/**
|
|
* You can use this to check if a pipe can connect to this liquid consumer to properly render the graphics
|
|
* @param forgeDirection - The side in which the volume is coming from.
|
|
* @parm type - The type of liquid
|
|
* @return Returns true or false if this consumer can receive a volume at this given tick or moment.
|
|
*/
|
|
public boolean canRecieveLiquid(Liquid type, ForgeDirection forgeDirection);
|
|
|
|
/**
|
|
* @return Return the stored liquid of type in this consumer.
|
|
*/
|
|
public int getStoredLiquid(Liquid type);
|
|
|
|
/**
|
|
* @return Return the maximum amount of stored liquid this consumer can get.
|
|
*/
|
|
public int getLiquidCapacity(Liquid type);
|
|
|
|
}
|