Package net.minecraft.src
Class ItemBlock
java.lang.Object
net.minecraft.src.Item
api.item.items.PlaceAsBlockItem
net.minecraft.src.ItemBlock
- Direct Known Subclasses:
AestheticEarthBlockItem,AestheticNonOpaqueBlockItem,AestheticOpaqueBlockItem,AestheticVegetationBlockItem,AnvilBlockItem,BloodWoodLogBlockItem,CompanionCubeBlockItem,DamageToMetadataBlockItem,DormantSoulforgeBlockItem,FreshPumpkinBlockItem,IceBlockItem,InfiniteBurningTorchBlockItem,InfinteUnlitTorchBlockItem,ItemBlockWithMetadata,ItemCloth,ItemColored,ItemLeaves,ItemMultiTextureTile,ItemPiston,ItemSlab,LeavesBlockItem,LegacyCornerBlockItem,LegacySidingBlockItem,LegacySubstitutionBlockItem,LeverBlockItem,MillstoneBlockItem,MiningChargeBlockItem,MouldingBlockItem,NetherrackBlockItem,PlanterBlockItem,SaplingBlockItem,SidingAndCornerBlockItem,SlabBlockItem,UnfiredPotteryBlockItem,VaseBlockItem,WhiteStoneStairsBlockItem,WoodCornerStubBlockItem,WoodMouldingDecorativeStubBlockItem,WoodMouldingStubBlockItem,WoodSidingDecorativeStubBlockItem,WoodSidingStubBlockItem
-
Field Summary
Fields inherited from class api.item.items.PlaceAsBlockItem
blockID, blockMetadata, requireNoEntitiesInTargetBlockFields inherited from class net.minecraft.src.Item
appleGold, appleRed, arrow, axeDiamond, axeGold, axeIron, axeStone, axeWood, bakedPotato, BASE_CHICKEN_ITEM_FOOD_VALUE, BASE_HERBIVORE_ITEM_FOOD_VALUE, BASE_PIG_ITEM_FOOD_VALUE, bed, beefCooked, beefRaw, bFull3D, blazePowder, blazeRod, boat, bone, book, bootsChain, bootsDiamond, bootsGold, bootsIron, bootsLeather, bow, bowlEmpty, bowlSoup, bread, brewingStand, brick, bucketEmpty, bucketLava, bucketMilk, bucketWater, cake, carrot, carrotOnAStick, cauldron, chickenCooked, chickenRaw, clay, coal, comparator, compass, cookie, defaultFurnaceBurnTime, diamond, doorIron, doorWood, dyePowder, egg, emerald, emptyMap, enchantedBook, enderPearl, expBottle, eyeOfEnder, feather, fermentedSpiderEye, field_111210_e, FILTERABLE_FINE, FILTERABLE_NARROW, FILTERABLE_NO_PROPERTIES, FILTERABLE_SMALL, FILTERABLE_SOLID_BLOCK, FILTERABLE_THIN, fireballCharge, firework, fireworkCharge, fishCooked, fishingRod, fishRaw, flint, flintAndSteel, flowerPot, ghastTear, glassBottle, glowstone, goldenCarrot, goldNugget, gunpowder, hasSubtypes, helmetChain, helmetDiamond, helmetGold, helmetIron, helmetLeather, hoeDiamond, hoeGold, hoeIron, hoeStone, hoeWood, horseArmorDiamond, horseArmorGold, horseArmorIron, iconString, ingotGold, ingotIron, isInceratedInCrucible, itemFrame, itemIcon, itemID, itemRand, itemsList, leash, leather, legsChain, legsDiamond, legsGold, legsIron, legsLeather, magmaCream, map, maxStackSize, melon, melonSeeds, minecartCrate, minecartEmpty, minecartHopper, minecartPowered, minecartTnt, modID, modIDSetter, monsterPlacer, nameTag, netherQuartz, netherrackBrick, netherStalkSeeds, netherStar, painting, paper, pickaxeDiamond, pickaxeGold, pickaxeIron, pickaxeStone, pickaxeWood, plateChain, plateDiamond, plateGold, plateIron, plateLeather, pocketSundial, poisonousPotato, porkCooked, porkRaw, potato, potion, pumpkinPie, pumpkinSeeds, record11, record13, recordBlocks, recordCat, recordChirp, recordFar, recordMall, recordMellohi, recordStal, recordStrad, recordWait, recordWard, redstone, redstoneRepeater, reed, rottenFlesh, saddle, seeds, shears, shovelDiamond, shovelGold, shovelIron, shovelStone, shovelWood, sign, silk, skull, slimeBall, snowball, speckledMelon, spiderEye, stick, sugar, suppressConflictWarnings, swordDiamond, swordGold, swordIron, swordStone, swordWood, wheat, writableBook, writtenBook -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the blockID for this ItemfloatgetBuoyancy(int iItemDamage) intgetChickenFoodValue(int iItemDamage) intgetColorFromItemStack(ItemStack var1, int var2) gets the CreativeTab this item is displayed onintgetFurnaceBurnTime(int iItemDamage) intgetHerbivoreFoodValue(int iItemDamage) getIconFromDamage(int par1) Gets an icon index based on an item's damage valueintgetPigFoodValue(int iItemDamage) intReturns 0 for /terrain.png, 1 for /gui/items.pngvoidgetSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List) returns a list of items with the same ID, but different meta (eg: dye returns 16 items)Returns the unlocalized name of this item.getUnlocalizedName(ItemStack par1ItemStack) // +++START EDIT+++ // ---END EDIT--- Returns the unlocalized name of this item.booleanvoidregisterIcons(IconRegister par1IconRegister) setAssociatedBlockID(int iBlockID) setBuoyancy(float fBuoyancy) setChickenFoodValue(int iFoodValue) setfurnaceburntime(int iBurnTime) setHerbivoreFoodValue(int iFoodValue) setPigFoodValue(int iFoodValue) Methods inherited from class api.item.items.PlaceAsBlockItem
canItemBeUsedByPlayer, canPlaceItemBlockOnSide, getBlockIDToPlace, getBlockIDToPlace, getMetadata, getTargetFacingPlacedByBlockDispenser, isTargetFreeOfObstructingEntities, onItemUse, onItemUsedByBlockDispenser, playPlaceSoundMethods inherited from class net.minecraft.src.Item
addInformation, canHarvestBlock, canItemEditBlocks, createItemAsEntityInWorld, doesConsumeContainerItemWhenCrafted, doesContainerItemLeaveCraftingGrid, doZombiesConsume, getAnimationIcon, getCampfireBurnTime, getCanBeFedDirectlyIntoBrickOven, getCanBeFedDirectlyIntoCampfire, getCanItemBeSetOnFireOnUse, getCanItemStartFireOnUse, getContainerItem, getCustomItemEntity, getExhaustionOnUsedToHarvestBlock, getHasSubtypes, getIconFromDamageForRenderPass, getIconIndex, getIconString, getInfernalMaxEnchantmentCost, getInfernalMaxNumEnchants, getIsRepairable, getItemAttributeModifiers, getItemDisplayName, getItemEnchantability, getItemRightClickCooldown, getItemStackDisplayName, getItemStackLimit, getItemUseAction, getItemUseWarmupDuration, getMaxDamage, getMaxItemUseDuration, getModId, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getShareTag, getStatName, getStrVsBlock, getUnlocalizedNameInefficiently, getWolfHealAmount, hasContainerItem, hasCustomItemEntity, hasEffect, hideFromEMI, hitEntity, ignoreDamageWhenComparingDuringUse, initializeStackOnGiveCommand, isConsumedInCrafting, isDamageable, isDamagedInCrafting, isEfficientVsBlock, isEnchantmentApplicable, isFull3D, isItemTool, isMap, isMultiUsePerClick, isPotionIngredient, isWolfFood, itemInteractionForEntity, onBlockDestroyed, onBrokenInCrafting, onCreated, onDamagedInCrafting, onEaten, onItemRightClick, onPlayerStoppedUsing, onUpdate, onUsedInCrafting, onUsedInCrafting, requiresMultipleRenderPasses, setAllAxesToBeEffectiveVsBlock, setAllPicksToBeEffectiveVsBlock, setAllShovelsToBeEffectiveVsBlock, setAsBasicChickenFood, setAsBasicHerbivoreFood, setAsBasicPigFood, setBuoyant, setContainerItem, setCreativeTab, setCustomItemEntity, setFull3D, setfurnaceburntime, setHasSubtypes, setIncineratedInCrucible, setInfernalMaxEnchantmentCost, setInfernalMaxNumEnchants, setItemRightClickCooldown, setMaxDamage, setMaxStackSize, setModID, setNeutralBuoyant, setNonBuoyant, setNotIncineratedInCrucible, setPotionEffect, setTextureName, setUnlocalizedName, shouldApplyAttributesWhenHeld, shouldApplyAttributesWhenWorn, shouldRotateAroundWhenRendering, updateUsingItem
-
Constructor Details
-
ItemBlock
public ItemBlock(int par1)
-
-
Method Details
-
getBlockID
public int getBlockID()Returns the blockID for this Item- Overrides:
getBlockIDin classPlaceAsBlockItem
-
getSpriteNumber
public int getSpriteNumber()Returns 0 for /terrain.png, 1 for /gui/items.png- Overrides:
getSpriteNumberin classItem
-
getIconFromDamage
Gets an icon index based on an item's damage value- Overrides:
getIconFromDamagein classItem
-
getUnlocalizedName
// +++START EDIT+++ // ---END EDIT--- Returns the unlocalized name of this item. This version accepts an ItemStack so different stacks can have different names based on their damage or NBT.- Overrides:
getUnlocalizedNamein classItem
-
getUnlocalizedName
Returns the unlocalized name of this item.- Overrides:
getUnlocalizedNamein classItem
-
getCreativeTab
gets the CreativeTab this item is displayed on- Overrides:
getCreativeTabin classItem
-
getSubItems
returns a list of items with the same ID, but different meta (eg: dye returns 16 items)- Overrides:
getSubItemsin classItem
-
registerIcons
- Overrides:
registerIconsin classItem
-
getColorFromItemStack
- Overrides:
getColorFromItemStackin classItem
-
getBuoyancy
public float getBuoyancy(int iItemDamage) - Overrides:
getBuoyancyin classItem
-
setBuoyancy
- Overrides:
setBuoyancyin classItem
-
getFurnaceBurnTime
public int getFurnaceBurnTime(int iItemDamage) - Overrides:
getFurnaceBurnTimein classItem
-
setfurnaceburntime
- Overrides:
setfurnaceburntimein classItem
-
getHerbivoreFoodValue
public int getHerbivoreFoodValue(int iItemDamage) - Overrides:
getHerbivoreFoodValuein classItem
-
setHerbivoreFoodValue
- Overrides:
setHerbivoreFoodValuein classItem
-
getChickenFoodValue
public int getChickenFoodValue(int iItemDamage) - Overrides:
getChickenFoodValuein classItem
-
setChickenFoodValue
- Overrides:
setChickenFoodValuein classItem
-
getPigFoodValue
public int getPigFoodValue(int iItemDamage) - Overrides:
getPigFoodValuein classItem
-
setPigFoodValue
- Overrides:
setPigFoodValuein classItem
-
isIncineratedInCrucible
public boolean isIncineratedInCrucible()- Overrides:
isIncineratedInCruciblein classItem
-
setAssociatedBlockID
- Overrides:
setAssociatedBlockIDin classPlaceAsBlockItem
-
getHopperFilterIcon
- Overrides:
getHopperFilterIconin classItem
-