YATS/Forge Documentation
|
Public Member Functions | |
LiquidStack (int itemID, int amount) | |
LiquidStack (Item item, int amount) | |
LiquidStack (Block block, int amount) | |
LiquidStack (int itemID, int amount, int itemDamage) | |
LiquidStack (int itemID, int amount, int itemDamage, NBTTagCompound nbt) | |
NBTTagCompound | writeToNBT (NBTTagCompound nbt) |
void | readFromNBT (NBTTagCompound nbt) |
LiquidStack | copy () |
boolean | isLiquidEqual (LiquidStack other) |
boolean | containsLiquid (LiquidStack other) |
boolean | isLiquidEqual (ItemStack other) |
ItemStack | asItemStack () |
String | getTextureSheet () |
LiquidStack | setTextureSheet (String textureSheet) |
Icon | getRenderingIcon () |
LiquidStack | setRenderingIcon (Icon icon) |
final int | hashCode () |
final boolean | equals (Object ob) |
LiquidStack | canonical () |
Static Public Member Functions | |
static LiquidStack | loadLiquidStackFromNBT (NBTTagCompound nbt) |
Public Attributes | |
final int | itemID |
int | amount |
final int | itemMeta |
NBTTagCompound | extra |
ItemStack substitute for liquids Things of note: they are equal if their items are equal. Amount does NOT matter for java equals() testing
The canonical liquidstack is probably the only one that has a lot of the rendering data on it. Use canonical() to get it.
net.minecraftforge.liquids.LiquidStack.LiquidStack | ( | int | itemID, |
int | amount | ||
) |
net.minecraftforge.liquids.LiquidStack.LiquidStack | ( | Item | item, |
int | amount | ||
) |
net.minecraftforge.liquids.LiquidStack.LiquidStack | ( | Block | block, |
int | amount | ||
) |
net.minecraftforge.liquids.LiquidStack.LiquidStack | ( | int | itemID, |
int | amount, | ||
int | itemDamage | ||
) |
net.minecraftforge.liquids.LiquidStack.LiquidStack | ( | int | itemID, |
int | amount, | ||
int | itemDamage, | ||
NBTTagCompound | nbt | ||
) |
ItemStack net.minecraftforge.liquids.LiquidStack.asItemStack | ( | ) |
LiquidStack net.minecraftforge.liquids.LiquidStack.canonical | ( | ) |
Get the canonical version of this liquid stack (will contain things like icons and texturesheets)
boolean net.minecraftforge.liquids.LiquidStack.containsLiquid | ( | LiquidStack | other) |
other |
LiquidStack net.minecraftforge.liquids.LiquidStack.copy | ( | ) |
final boolean net.minecraftforge.liquids.LiquidStack.equals | ( | Object | ob) |
Icon net.minecraftforge.liquids.LiquidStack.getRenderingIcon | ( | ) |
Get the rendering icon for this liquid stack, for presentation in the world or in GUIs. Defaults to handling water and lava, and returns the set rendering icon otherwise.
See getTextureSheet() to get the texture sheet this icon is associated with
String net.minecraftforge.liquids.LiquidStack.getTextureSheet | ( | ) |
Return the textureSheet used for this liquid stack's texture Icon Defaults to '/terrain.png'
See getRenderingIcon() for the actual icon
final int net.minecraftforge.liquids.LiquidStack.hashCode | ( | ) |
boolean net.minecraftforge.liquids.LiquidStack.isLiquidEqual | ( | LiquidStack | other) |
other |
boolean net.minecraftforge.liquids.LiquidStack.isLiquidEqual | ( | ItemStack | other) |
other | ItemStack containing liquids. |
|
static |
Reads a liquid stack from the passed nbttagcompound and returns it.
nbt |
void net.minecraftforge.liquids.LiquidStack.readFromNBT | ( | NBTTagCompound | nbt) |
NO-OP now. Use loadLiquidStackFromNBT(NBTTagCompound) to get a new instance
nbt |
LiquidStack net.minecraftforge.liquids.LiquidStack.setRenderingIcon | ( | Icon | icon) |
Set the icon for rendering this liquid It should be refreshed whenever textures are refreshed.
See also setTextureSheet(String) for setting the sheet this icon is associated with
icon | The icon to render |
LiquidStack net.minecraftforge.liquids.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
textureSheet |
NBTTagCompound net.minecraftforge.liquids.LiquidStack.writeToNBT | ( | NBTTagCompound | nbt) |
int net.minecraftforge.liquids.LiquidStack.amount |
NBTTagCompound net.minecraftforge.liquids.LiquidStack.extra |
final int net.minecraftforge.liquids.LiquidStack.itemID |
final int net.minecraftforge.liquids.LiquidStack.itemMeta |