public class ItemHelper
extends java.lang.Object
| Constructor and Description |
|---|
ItemHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getItemString(net.minecraft.item.Item item)
Converts an Item into a string with the formatting of:
domain:regname:meta#amount
|
static java.lang.String |
getItemString(net.minecraft.item.Item item,
int meta)
Converts an Item into a string with the formatting of:
domain:regname:meta#amount
|
static java.lang.String |
getItemString(net.minecraft.item.Item item,
int meta,
int amount)
Converts an Item into a string with the formatting of:
domain:regname:meta#amount
|
static java.lang.String |
getItemString(net.minecraft.item.ItemStack stack)
Converts an ItemStack into a string with the formatting of:
domain:regname:meta#amount
|
static net.minecraft.item.ItemStack |
getOreStack(java.lang.String entry)
Provides an ItemStack obtained from a given OreDict entry
|
static net.minecraft.item.ItemStack |
parseItemStack(java.lang.String stackString,
boolean input)
Takes a string input with a specific formatting and
parses it as an ItemStack.
|
public static java.lang.String getItemString(net.minecraft.item.Item item)
item - - Item to create a string ofpublic static java.lang.String getItemString(net.minecraft.item.Item item,
int meta)
item - - Item to create a string ofmeta - - The damage value of the itempublic static java.lang.String getItemString(net.minecraft.item.Item item,
int meta,
int amount)
item - - Item to create a string ofmeta - - The damage value of the itemamount - - The amount of the itempublic static java.lang.String getItemString(net.minecraft.item.ItemStack stack)
stack - - Stack to convertpublic static net.minecraft.item.ItemStack getOreStack(java.lang.String entry)
entry - - OreDict entry to get the ItemStack ofpublic static net.minecraft.item.ItemStack parseItemStack(java.lang.String stackString,
boolean input)
stackString - - Formatted stringinput - - Whether the string defines an input or not.