public abstract class LiquidDictionary extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
LiquidDictionary.LiquidRegisterEvent
Fired when a new liquid is created 
 | 
| Constructor and Description | 
|---|
LiquidDictionary()  | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
findLiquidName(LiquidStack reference)  | 
static LiquidStack | 
getCanonicalLiquid(LiquidStack liquidStack)  | 
static LiquidStack | 
getCanonicalLiquid(String name)  | 
static LiquidStack | 
getLiquid(String name,
                  int amount)
Returns the liquid matching the name,
 if such a liquid exists. 
 | 
static Map<String,LiquidStack> | 
getLiquids()
Get an immutable list of the liquids defined 
 | 
static LiquidStack | 
getOrCreateLiquid(String name,
                                  LiquidStack liquid)
When creating liquids you should call this function. 
 | 
public LiquidDictionary()
public static LiquidStack getOrCreateLiquid(String name, LiquidStack liquid)
name - the name of the liquidliquid - the liquid to use if one doesn't existpublic static LiquidStack getLiquid(String name, int amount)
name - the name of the liquidamount - the amout of liquidpublic static LiquidStack getCanonicalLiquid(String name)
public static Map<String,LiquidStack> getLiquids()
public static String findLiquidName(LiquidStack reference)
public static LiquidStack getCanonicalLiquid(LiquidStack liquidStack)