public class LiquidStack extends Object
Constructor and Description |
---|
LiquidStack(Block block,
int amount) |
LiquidStack(int itemID,
int amount) |
LiquidStack(int itemID,
int amount,
int itemDamage) |
LiquidStack(Item item,
int amount) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
asItemStack() |
boolean |
containsLiquid(LiquidStack other) |
LiquidStack |
copy() |
boolean |
equals(Object ob) |
Icon |
getRenderingIcon() |
int |
hashCode() |
boolean |
isLiquidEqual(ItemStack other) |
boolean |
isLiquidEqual(LiquidStack other) |
static LiquidStack |
loadLiquidStackFromNBT(NBTTagCompound nbt)
Reads a liquid stack from the passed nbttagcompound and returns it.
|
void |
readFromNBT(NBTTagCompound nbt) |
void |
setRenderingIcon(Icon icon) |
NBTTagCompound |
writeToNBT(NBTTagCompound nbt) |
public LiquidStack(int itemID, int amount)
public LiquidStack(Item item, int amount)
public LiquidStack(Block block, int amount)
public LiquidStack(int itemID, int amount, int itemDamage)
public NBTTagCompound writeToNBT(NBTTagCompound nbt)
public void readFromNBT(NBTTagCompound nbt)
public LiquidStack copy()
public boolean isLiquidEqual(LiquidStack other)
other
- public boolean containsLiquid(LiquidStack other)
other
- public boolean isLiquidEqual(ItemStack other)
other
- ItemStack containing liquids.public ItemStack asItemStack()
public static LiquidStack loadLiquidStackFromNBT(NBTTagCompound nbt)
nbt
- public Icon getRenderingIcon()
public void setRenderingIcon(Icon icon)