YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraftforge.liquids.LiquidDictionary Class Reference

Classes

class  LiquidRegisterEvent
 

Static Public Member Functions

static LiquidStack getOrCreateLiquid (String name, LiquidStack liquid)
 
static LiquidStack getLiquid (String name, int amount)
 
static LiquidStack getCanonicalLiquid (String name)
 
static Map< String, LiquidStackgetLiquids ()
 
static String findLiquidName (LiquidStack reference)
 
static LiquidStack getCanonicalLiquid (LiquidStack liquidStack)
 

Detailed Description

When creating liquids you should register them with this class.

Author
CovertJaguar <railcraft.wikispaces.com>

Member Function Documentation

static String net.minecraftforge.liquids.LiquidDictionary.findLiquidName ( LiquidStack  reference)
static
static LiquidStack net.minecraftforge.liquids.LiquidDictionary.getCanonicalLiquid ( String  name)
static
static LiquidStack net.minecraftforge.liquids.LiquidDictionary.getCanonicalLiquid ( LiquidStack  liquidStack)
static
static LiquidStack net.minecraftforge.liquids.LiquidDictionary.getLiquid ( String  name,
int  amount 
)
static

Returns the liquid matching the name, if such a liquid exists.

Can return null.

Parameters
namethe name of the liquid
amountthe amout of liquid
Returns
a liquidstack for the requested liquid
static Map<String, LiquidStack> net.minecraftforge.liquids.LiquidDictionary.getLiquids ( )
static

Get an immutable list of the liquids defined

Returns
the defined liquids
static LiquidStack net.minecraftforge.liquids.LiquidDictionary.getOrCreateLiquid ( String  name,
LiquidStack  liquid 
)
static

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
namethe name of the liquid
liquidthe liquid to use if one doesn't exist
Returns
the matching liquid stack

The documentation for this class was generated from the following file: