|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.minecraftforge.liquids.LiquidDictionary
public abstract class LiquidDictionary
When creating liquids you should register them with this class.
| Nested Class Summary | |
|---|---|
static class |
LiquidDictionary.LiquidRegisterEvent
Fired when a new liquid is created |
| Constructor Summary | |
|---|---|
LiquidDictionary()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LiquidDictionary()
| Method Detail |
|---|
public static LiquidStack getOrCreateLiquid(String name,
LiquidStack liquid)
name - the name of the liquidliquid - the liquid to use if one doesn't exist
public static LiquidStack getLiquid(String name,
int amount)
name - the name of the liquidamount - the amout of liquid
public static Map<String,LiquidStack> getLiquids()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||