public class ItemMultiTexture extends ItemBlock
Item.ToolMaterial| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.base.Function<ItemStack,java.lang.String> |
nameFunction |
protected Block |
theBlock |
bFull3D, hasSubtypes, itemModifierUUID, itemRand, itemRegistry, maxStackSize| Constructor and Description |
|---|
ItemMultiTexture(Block block,
Block block2,
com.google.common.base.Function<ItemStack,java.lang.String> nameFunction) |
ItemMultiTexture(Block block,
Block block2,
java.lang.String[] namesByMeta) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
canPlaceBlockOnSide, getBlock, getCreativeTab, getSubItems, getUnlocalizedName, onItemUse, setTileEntityNBT, setUnlocalizedNameaddInformation, canHarvestBlock, canItemEditBlocks, getByNameOrId, getColorFromItemStack, 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, updateItemStackNBTprotected final Block theBlock
protected final com.google.common.base.Function<ItemStack,java.lang.String> nameFunction
public ItemMultiTexture(Block block, Block block2, com.google.common.base.Function<ItemStack,java.lang.String> nameFunction)
public int getMetadata(int damage)
getMetadata in class Itempublic java.lang.String getUnlocalizedName(ItemStack stack)
getUnlocalizedName in class ItemBlock