public interface IInventoryItem
IItemRegistry.registerInventoryItem(IInventoryItem).
This will then will be used in the Pneumatic Helmet's item search and item tooltip generation.| Modifier and Type | Method and Description |
|---|---|
default net.minecraft.util.text.ITextComponent |
getInventoryHeader()
Get a header for the inventory list, for tooltip purposes.
|
static void |
getStacks(net.minecraft.item.ItemStack stack,
java.util.List<net.minecraft.item.ItemStack> curStacks)
Convenience implementation for
getStacksInItem(ItemStack, List) for items have been
dropped from a tile entity block with serialized data. |
void |
getStacksInItem(net.minecraft.item.ItemStack stack,
java.util.List<net.minecraft.item.ItemStack> curStacks) |
default java.lang.String |
getTooltipPrefix(net.minecraft.item.ItemStack stack)
A String to prepend to outputted tooltip lines.
|
void getStacksInItem(net.minecraft.item.ItemStack stack,
java.util.List<net.minecraft.item.ItemStack> curStacks)
stack - Item that potentially has an inventory.curStacks - List of all currently added stacks for this item. Add more stacks in here in your implementation when found the right item.default net.minecraft.util.text.ITextComponent getInventoryHeader()
default java.lang.String getTooltipPrefix(net.minecraft.item.ItemStack stack)
stack - the itemstack currently being added to the tooltipstatic void getStacks(net.minecraft.item.ItemStack stack,
java.util.List<net.minecraft.item.ItemStack> curStacks)
getStacksInItem(ItemStack, List) for items have been
dropped from a tile entity block with serialized data.stack - the stackcurStacks - a list of stacks to fill