public class DamageIndicatedItemComponent
extends java.lang.Object
DamageIndicatedItemFluidContainer for an example.
This could be for example an Item or an ItemFluidContainer.| Modifier and Type | Field and Description |
|---|---|
net.minecraftforge.fluids.ItemFluidContainer |
item
The item class on which the behaviour will be added.
|
| Constructor and Description |
|---|
DamageIndicatedItemComponent(net.minecraftforge.fluids.ItemFluidContainer item)
Create a new DamageIndicatedItemComponent
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4)
Add information to the given list for the given item.
|
double |
getDurability(net.minecraft.item.ItemStack itemStack)
Get the displayed durability value for the given
ItemStack. |
static java.lang.String |
getInfo(net.minecraftforge.fluids.FluidStack fluidStack,
int amount,
int capacity)
Get hovering info for the given amount and capacity.
|
java.lang.String |
getInfo(net.minecraft.item.ItemStack itemStack)
Get hovering info for the given
ItemStack. |
void |
getSubItems(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs tab,
java.util.List itemList,
net.minecraftforge.fluids.Fluid fluid,
int meta)
Add the creative tab items.
|
public net.minecraftforge.fluids.ItemFluidContainer item
public DamageIndicatedItemComponent(net.minecraftforge.fluids.ItemFluidContainer item)
item - The item class on which the behaviour will be added.public void getSubItems(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs tab,
java.util.List itemList,
net.minecraftforge.fluids.Fluid fluid,
int meta)
item - The item.tab - The creative tab to add to.itemList - The item list to add to.fluid - The fluid in the container that needs to be added.meta - The meta data for the item to add.public java.lang.String getInfo(net.minecraft.item.ItemStack itemStack)
ItemStack.itemStack - The item stack to add the info for.public static java.lang.String getInfo(net.minecraftforge.fluids.FluidStack fluidStack,
int amount,
int capacity)
fluidStack - The fluid stack for this container, can be null.amount - The amount to show.capacity - The capacity to show.public void addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4)
itemStack - The ItemStack to add info for.entityPlayer - The player that will see the info.list - The info list where the info will be added.par4 - No idea...public double getDurability(net.minecraft.item.ItemStack itemStack)
ItemStack.itemStack - The ItemStack to get the displayed damage for.