public class ItemColored extends ItemBlock
Item.ToolMaterial| Modifier and Type | Field and Description |
|---|---|
private Block |
coloredBlock |
private java.lang.String[] |
subtypeNames |
bFull3D, hasSubtypes, itemModifierUUID, itemRand, itemRegistry, maxStackSize| Constructor and Description |
|---|
ItemColored(Block block,
boolean hasSubtypes) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColorFromItemStack(ItemStack stack,
int renderPass) |
int |
getMetadata(int damage)
Converts the given ItemStack damage value into a metadata value to be placed in the world when this Item is
placed as a Block (mostly used with ItemBlocks).
|
java.lang.String |
getUnlocalizedName(ItemStack stack)
Returns the unlocalized name of this item.
|
ItemColored |
setSubtypeNames(java.lang.String[] names) |
canPlaceBlockOnSide, getBlock, getCreativeTab, getSubItems, getUnlocalizedName, onItemUse, setTileEntityNBT, setUnlocalizedNameaddInformation, canHarvestBlock, canItemEditBlocks, getByNameOrId, getContainerItem, getHasSubtypes, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxItemUseDuration, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getShareTag, getStrVsBlock, getUnlocalizedNameInefficiently, hasContainerItem, hasEffect, hitEntity, isDamageable, isFull3D, isItemTool, isMap, isPotionIngredient, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemRightClick, onItemUseFinish, onPlayerStoppedUsing, onUpdate, registerItemBlock, registerItems, setContainerItem, setCreativeTab, setFull3D, setHasSubtypes, setMaxDamage, setMaxStackSize, setPotionEffect, shouldRotateAroundWhenRendering, updateItemStackNBTprivate final Block coloredBlock
private java.lang.String[] subtypeNames
public ItemColored(Block block, boolean hasSubtypes)
public int getColorFromItemStack(ItemStack stack, int renderPass)
getColorFromItemStack in class Itempublic int getMetadata(int damage)
getMetadata in class Itempublic ItemColored setSubtypeNames(java.lang.String[] names)
public java.lang.String getUnlocalizedName(ItemStack stack)
getUnlocalizedName in class ItemBlock