public class InformationProviderComponent
extends java.lang.Object
IInformationProvider implementations.| Constructor and Description |
|---|
InformationProviderComponent(net.minecraft.block.Block block)
Make a new instance.
|
| 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.
|
net.minecraft.block.Block |
getBlock()
Get the block that uses this component.
|
boolean |
isHasInfo()
If the block that uses this component implements
IInformationProvider. |
void |
setBlock(net.minecraft.block.Block block)
Set the block that uses this component.
|
public InformationProviderComponent(net.minecraft.block.Block block)
block - The block for which the component is used.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 boolean isHasInfo()
IInformationProvider.public net.minecraft.block.Block getBlock()
public void setBlock(net.minecraft.block.Block block)
block - The block.