2013-01-02 19:55:29 +01:00
|
|
|
package liquidmechanics.api;
|
|
|
|
|
2013-01-03 18:18:47 +01:00
|
|
|
import liquidmechanics.common.handlers.LiquidData;
|
2013-01-02 19:55:29 +01:00
|
|
|
import net.minecraftforge.common.ForgeDirection;
|
|
|
|
import net.minecraftforge.liquids.ITankContainer;
|
|
|
|
|
2013-01-05 01:03:20 +01:00
|
|
|
public interface IPressure
|
2013-01-02 19:55:29 +01:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param type - Liquid type
|
|
|
|
* @param dir - direction pressure is being request to output
|
|
|
|
* @return pressure if can output for the type or direction
|
|
|
|
*/
|
2013-01-03 18:18:47 +01:00
|
|
|
public int presureOutput(LiquidData type, ForgeDirection dir);
|
2013-01-02 19:55:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Quick way to check if the TE will output pressure
|
|
|
|
*
|
|
|
|
* @param type - Liquid type
|
|
|
|
* @param dir - direction
|
|
|
|
* @return
|
|
|
|
*/
|
2013-01-03 18:18:47 +01:00
|
|
|
public boolean canPressureToo(LiquidData type, ForgeDirection dir);
|
2013-01-05 01:03:20 +01:00
|
|
|
/**
|
|
|
|
* gets the LiquidData linked to the TE
|
|
|
|
*/
|
|
|
|
public LiquidData getLiquidType();
|
2013-01-02 19:55:29 +01:00
|
|
|
}
|