@Deprecated public class LiquidStack extends Object
canonical()
to get it.Modifier and Type | Field and Description |
---|---|
int |
amount
Deprecated.
|
NBTTagCompound |
extra
Deprecated.
|
int |
itemID
Deprecated.
|
int |
itemMeta
Deprecated.
|
Constructor and Description |
---|
LiquidStack(Block block,
int amount)
Deprecated.
|
LiquidStack(int itemID,
int amount)
Deprecated.
|
LiquidStack(int itemID,
int amount,
int itemDamage)
Deprecated.
|
LiquidStack(int itemID,
int amount,
int itemDamage,
NBTTagCompound nbt)
Deprecated.
|
LiquidStack(Item item,
int amount)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ItemStack |
asItemStack()
Deprecated.
|
LiquidStack |
canonical()
Deprecated.
Get the canonical version of this liquid stack (will contain things like icons and texturesheets)
|
boolean |
containsLiquid(LiquidStack other)
Deprecated.
|
LiquidStack |
copy()
Deprecated.
|
boolean |
equals(Object ob)
Deprecated.
|
Icon |
getRenderingIcon()
Deprecated.
Get the rendering icon for this liquid stack, for presentation in the world or in GUIs.
|
String |
getTextureSheet()
Deprecated.
Return the textureSheet used for this liquid stack's texture Icon
Defaults to '/terrain.png'
See
getRenderingIcon() for the actual icon |
int |
hashCode()
Deprecated.
|
boolean |
isLiquidEqual(ItemStack other)
Deprecated.
|
boolean |
isLiquidEqual(LiquidStack other)
Deprecated.
|
static LiquidStack |
loadLiquidStackFromNBT(NBTTagCompound nbt)
Deprecated.
Reads a liquid stack from the passed nbttagcompound and returns it.
|
LiquidStack |
setRenderingIcon(Icon icon)
Deprecated.
Set the icon for rendering this liquid
It should be refreshed whenever textures are refreshed.
|
LiquidStack |
setTextureSheet(String textureSheet)
Deprecated.
Set the texture sheet for this icon (usually /terrain.png or /gui/items.png)
See also the
setRenderingIcon(Icon) for the icon itself |
NBTTagCompound |
writeToNBT(NBTTagCompound nbt)
Deprecated.
|
public final int itemID
public int amount
public final int itemMeta
public NBTTagCompound extra
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 LiquidStack(int itemID, int amount, int itemDamage, NBTTagCompound nbt)
public NBTTagCompound writeToNBT(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 String getTextureSheet()
getRenderingIcon()
for the actual iconpublic LiquidStack setTextureSheet(String textureSheet)
setRenderingIcon(Icon)
for the icon itselftextureSheet
- public Icon getRenderingIcon()
getTextureSheet()
to get the texture sheet this icon is associated withpublic LiquidStack setRenderingIcon(Icon icon)
setTextureSheet(String)
for setting the sheet this icon is associated withicon
- The icon to renderpublic LiquidStack canonical()