public class ItemBlockMetadata
extends net.minecraft.item.ItemBlockWithMetadata
ItemBlockWithMetadata that will automatically add information to the block
item if that block implements IInformationProvider.| Modifier and Type | Field and Description |
|---|---|
protected InformationProviderComponent |
informationProvider |
protected IBlockRarityProvider |
rarityProvider |
| Constructor and Description |
|---|
ItemBlockMetadata(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) |
net.minecraft.item.EnumRarity |
getRarity(net.minecraft.item.ItemStack itemStack) |
getIconFromDamage, getMetadatafunc_150936_a, getCreativeTab, getSpriteNumber, getSubItems, getUnlocalizedName, getUnlocalizedName, onItemUse, placeBlockAt, registerIcons, setUnlocalizedNamecanHarvestBlock, canItemEditBlocks, createEntity, doesContainerItemLeaveCraftingGrid, doesSneakBypassUse, func_150893_a, func_150897_b, getArmorModel, getArmorTexture, getAttributeModifiers, getChestGenBase, getColorFromItemStack, getContainerItem, getContainerItem, getCreativeTabs, getDamage, getDigSpeed, getDisplayDamage, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIcon, getIcon, getIconFromDamageForRenderPass, getIconIndex, getIconString, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMovingObjectPositionFromPlayer, getPotionEffect, getRenderPasses, getShareTag, getSmeltingExperience, getToolClasses, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEaten, onEntityItemUpdate, onEntitySwing, onItemRightClick, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerItems, renderHelmetOverlay, requiresMultipleRenderPasses, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setTextureName, shouldRotateAroundWhenRendering, showDurabilityBarprotected InformationProviderComponent informationProvider
protected IBlockRarityProvider rarityProvider
public ItemBlockMetadata(net.minecraft.block.Block block)
block - The block instance.public void addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4)
addInformation in class net.minecraft.item.Itempublic net.minecraft.item.EnumRarity getRarity(net.minecraft.item.ItemStack itemStack)
getRarity in class net.minecraft.item.Item