Package | Description |
---|---|
net.minecraftforge.liquids |
Modifier and Type | Field and Description |
---|---|
LiquidStack |
LiquidEvent.liquid |
LiquidStack |
LiquidDictionary.LiquidRegisterEvent.Liquid |
LiquidStack |
LiquidContainerData.stillLiquid |
Modifier and Type | Method and Description |
---|---|
LiquidStack |
LiquidStack.canonical()
Get the canonical version of this liquid stack (will contain things like icons and texturesheets)
|
LiquidStack |
LiquidStack.copy() |
LiquidStack |
ITankContainer.drain(ForgeDirection from,
int maxDrain,
boolean doDrain)
Drains liquid out of internal tanks, distribution is left to the ITankContainer.
|
LiquidStack |
ILiquidTank.drain(int maxDrain,
boolean doDrain) |
LiquidStack |
LiquidTank.drain(int maxDrain,
boolean doDrain) |
LiquidStack |
ITankContainer.drain(int tankIndex,
int maxDrain,
boolean doDrain)
Drains liquid out of the specified internal tank.
|
static LiquidStack |
LiquidDictionary.getCanonicalLiquid(LiquidStack liquidStack) |
static LiquidStack |
LiquidDictionary.getCanonicalLiquid(String name) |
LiquidStack |
ILiquidTank.getLiquid() |
LiquidStack |
LiquidTank.getLiquid() |
static LiquidStack |
LiquidDictionary.getLiquid(String name,
int amount)
Returns the liquid matching the name,
if such a liquid exists.
|
static LiquidStack |
LiquidContainerRegistry.getLiquidForFilledItem(ItemStack filledContainer) |
static LiquidStack |
LiquidDictionary.getOrCreateLiquid(String name,
LiquidStack liquid)
When creating liquids you should call this function.
|
static LiquidStack |
LiquidStack.loadLiquidStackFromNBT(NBTTagCompound nbt)
Reads a liquid stack from the passed nbttagcompound and returns it.
|
LiquidStack |
LiquidStack.setRenderingIcon(Icon icon)
Set the icon for rendering this liquid
It should be refreshed whenever textures are refreshed.
|
LiquidStack |
LiquidStack.setTextureSheet(String textureSheet)
Set the texture sheet for this icon (usually /terrain.png or /gui/items.png)
See also the
setRenderingIcon(Icon) for the icon itself |
Modifier and Type | Method and Description |
---|---|
static Map<String,LiquidStack> |
LiquidDictionary.getLiquids()
Get an immutable list of the liquids defined
|
Modifier and Type | Method and Description |
---|---|
static boolean |
LiquidContainerRegistry.containsLiquid(ItemStack filledContainer,
LiquidStack liquid) |
boolean |
LiquidStack.containsLiquid(LiquidStack other) |
int |
ITankContainer.fill(ForgeDirection from,
LiquidStack resource,
boolean doFill)
Fills liquid into internal tanks, distribution is left to the ITankContainer.
|
int |
ITankContainer.fill(int tankIndex,
LiquidStack resource,
boolean doFill)
Fills liquid into the specified internal tank.
|
int |
ILiquidTank.fill(LiquidStack resource,
boolean doFill) |
int |
LiquidTank.fill(LiquidStack resource,
boolean doFill) |
static ItemStack |
LiquidContainerRegistry.fillLiquidContainer(LiquidStack liquid,
ItemStack emptyContainer) |
static String |
LiquidDictionary.findLiquidName(LiquidStack reference) |
static LiquidStack |
LiquidDictionary.getCanonicalLiquid(LiquidStack liquidStack) |
static LiquidStack |
LiquidDictionary.getOrCreateLiquid(String name,
LiquidStack liquid)
When creating liquids you should call this function.
|
ILiquidTank |
ITankContainer.getTank(ForgeDirection direction,
LiquidStack type)
Return the tank that this tank container desired to be used for the specified liquid type from the specified direction
|
boolean |
LiquidStack.isLiquidEqual(LiquidStack other) |
void |
LiquidTank.setLiquid(LiquidStack liquid) |
Constructor and Description |
---|
LiquidContainerData(LiquidStack stillLiquid,
ItemStack filled,
ItemStack container) |
LiquidDictionary.LiquidRegisterEvent(String name,
LiquidStack liquid) |
LiquidEvent.LiquidDrainingEvent(LiquidStack liquid,
World world,
int x,
int y,
int z,
ILiquidTank tank) |
LiquidEvent.LiquidFillingEvent(LiquidStack liquid,
World world,
int x,
int y,
int z,
ILiquidTank tank) |
LiquidEvent.LiquidMotionEvent(LiquidStack liquid,
World world,
int x,
int y,
int z) |
LiquidEvent.LiquidSpilledEvent(LiquidStack liquid,
World world,
int x,
int y,
int z) |
LiquidEvent(LiquidStack liquid,
World world,
int x,
int y,
int z) |
LiquidTank(LiquidStack liquid,
int capacity) |
LiquidTank(LiquidStack liquid,
int capacity,
TileEntity tile) |