net.minecraftforge.liquids
Class LiquidDictionary
java.lang.Object
net.minecraftforge.liquids.LiquidDictionary
public abstract class LiquidDictionary
- extends Object
When creating liquids you should register them with this class.
- Author:
- CovertJaguar
LiquidDictionary
public LiquidDictionary()
getOrCreateLiquid
public static LiquidStack getOrCreateLiquid(String name,
LiquidStack liquid)
- When creating liquids you should call this function.
Upon passing it a name and liquid item it will return either
a preexisting implementation of that liquid or the liquid passed in.
- Parameters:
name
- the name of the liquidliquid
- the liquid to use if one doesn't exist
- Returns:
getLiquid
public static LiquidStack getLiquid(String name,
int amount)
- Returns the liquid matching the name,
if such a liquid exists.
Can return null.
- Parameters:
name
- the name of the liquidamount
- the amout of liquid
- Returns: