Class Item

java.lang.Object
net.minecraft.src.Item
Direct Known Subclasses:
ArcaneScrollItem, ArrowItem, BarkItem, BoneItem, BreedingHarnessItem, BucketItemLava, CanvasItem, ClubItem, CorpseEyeItem, DirtPileItem, DoorItem, DungItem, DynamiteItem, FireStarterItem, FlintItem, GravelPileItem, ItemArmor, ItemBed, ItemBoat, ItemBook, ItemBow, ItemBucket, ItemBucketMilk, ItemCarrotOnAStick, ItemCoal, ItemDoor, ItemDye, ItemEditableBook, ItemEgg, ItemEnchantedBook, ItemEnderEye, ItemEnderPearl, ItemExpBottle, ItemFireball, ItemFirework, ItemFireworkCharge, ItemFishingRod, ItemFlintAndSteel, ItemFood, ItemGlassBottle, ItemHangingEntity, ItemHoe, ItemLeash, ItemMapBase, ItemMinecart, ItemMonsterPlacer, ItemNameTag, ItemPotion, ItemRecord, ItemRedstone, ItemSaddle, ItemSeeds, ItemShears, ItemSign, ItemSimpleFoiled, ItemSkull, ItemSnowball, ItemSword, ItemTemplate, ItemTool, ItemWritableBook, KnittingNeedlesItem, LegacyWheatItem, LocatorPileItem, MortarItem, MouldItem, MysteriousGlandItem, NetherBrickItem, NetherGrothSporesItem, NetherQuartzItem, PlaceAsBlockItem, ProgressiveCraftingItem, RopeItem, SandPileItem, SeedItem, SoapItem, SoulFluxItem, SoulSandPileItem, StoneBrickItem, StrawItem, StubItem, StumpRemoverItem, ThrowableItem, ToolItem, TuningForkItem, VerticalWindMillItem, WaterWheelItem, WheatItem, WickerPieceItem, WindMillItem, WoolItem, WoolKnitItem

public class Item extends Object
  • Field Details

    • field_111210_e

      public static final UUID field_111210_e
    • modIDSetter

      public static String modIDSetter
    • modID

      protected String modID
    • itemRand

      protected static Random itemRand
      The RNG used by the Item subclasses.
    • itemsList

      public static Item[] itemsList
      A 32000 elements Item array.
    • FILTERABLE_NO_PROPERTIES

      public static final int FILTERABLE_NO_PROPERTIES
      See Also:
    • FILTERABLE_SOLID_BLOCK

      public static final int FILTERABLE_SOLID_BLOCK
      See Also:
    • FILTERABLE_SMALL

      public static final int FILTERABLE_SMALL
      See Also:
    • FILTERABLE_NARROW

      public static final int FILTERABLE_NARROW
      See Also:
    • FILTERABLE_FINE

      public static final int FILTERABLE_FINE
      See Also:
    • FILTERABLE_THIN

      public static final int FILTERABLE_THIN
      See Also:
    • shovelIron

      public static Item shovelIron
    • pickaxeIron

      public static Item pickaxeIron
    • axeIron

      public static Item axeIron
    • flintAndSteel

      public static Item flintAndSteel
    • appleRed

      public static Item appleRed
    • bow

      public static ItemBow bow
    • arrow

      public static Item arrow
    • coal

      public static Item coal
    • diamond

      public static Item diamond
    • ingotIron

      public static Item ingotIron
    • ingotGold

      public static Item ingotGold
    • swordIron

      public static Item swordIron
    • swordWood

      public static Item swordWood
    • shovelWood

      public static Item shovelWood
    • pickaxeWood

      public static Item pickaxeWood
    • axeWood

      public static Item axeWood
    • swordStone

      public static Item swordStone
    • shovelStone

      public static Item shovelStone
    • pickaxeStone

      public static Item pickaxeStone
    • axeStone

      public static Item axeStone
    • swordDiamond

      public static Item swordDiamond
    • shovelDiamond

      public static Item shovelDiamond
    • pickaxeDiamond

      public static Item pickaxeDiamond
    • axeDiamond

      public static Item axeDiamond
    • stick

      public static Item stick
    • bowlEmpty

      public static Item bowlEmpty
    • bowlSoup

      public static Item bowlSoup
    • swordGold

      public static Item swordGold
    • shovelGold

      public static Item shovelGold
    • pickaxeGold

      public static Item pickaxeGold
    • axeGold

      public static Item axeGold
    • silk

      public static Item silk
    • feather

      public static Item feather
    • gunpowder

      public static Item gunpowder
    • hoeWood

      public static Item hoeWood
    • hoeStone

      public static Item hoeStone
    • hoeIron

      public static Item hoeIron
    • hoeDiamond

      public static Item hoeDiamond
    • hoeGold

      public static Item hoeGold
    • seeds

      public static Item seeds
    • wheat

      public static Item wheat
    • bread

      public static Item bread
    • helmetLeather

      public static ItemArmor helmetLeather
    • plateLeather

      public static ItemArmor plateLeather
    • legsLeather

      public static ItemArmor legsLeather
    • bootsLeather

      public static ItemArmor bootsLeather
    • helmetChain

      public static ItemArmor helmetChain
    • plateChain

      public static ItemArmor plateChain
    • legsChain

      public static ItemArmor legsChain
    • bootsChain

      public static ItemArmor bootsChain
    • helmetIron

      public static ItemArmor helmetIron
    • plateIron

      public static ItemArmor plateIron
    • legsIron

      public static ItemArmor legsIron
    • bootsIron

      public static ItemArmor bootsIron
    • helmetDiamond

      public static ItemArmor helmetDiamond
    • plateDiamond

      public static ItemArmor plateDiamond
    • legsDiamond

      public static ItemArmor legsDiamond
    • bootsDiamond

      public static ItemArmor bootsDiamond
    • helmetGold

      public static ItemArmor helmetGold
    • plateGold

      public static ItemArmor plateGold
    • legsGold

      public static ItemArmor legsGold
    • bootsGold

      public static ItemArmor bootsGold
    • flint

      public static Item flint
    • porkRaw

      public static Item porkRaw
    • porkCooked

      public static Item porkCooked
    • painting

      public static Item painting
    • appleGold

      public static Item appleGold
    • sign

      public static Item sign
    • doorWood

      public static Item doorWood
    • bucketEmpty

      public static Item bucketEmpty
    • bucketWater

      public static Item bucketWater
    • bucketLava

      public static Item bucketLava
    • minecartEmpty

      public static Item minecartEmpty
    • saddle

      public static Item saddle
    • doorIron

      public static Item doorIron
    • redstone

      public static Item redstone
    • snowball

      public static Item snowball
    • boat

      public static Item boat
    • leather

      public static Item leather
    • bucketMilk

      public static Item bucketMilk
    • brick

      public static Item brick
    • clay

      public static Item clay
    • reed

      public static Item reed
    • paper

      public static Item paper
    • book

      public static Item book
    • slimeBall

      public static Item slimeBall
    • minecartCrate

      public static Item minecartCrate
    • minecartPowered

      public static Item minecartPowered
    • egg

      public static Item egg
    • compass

      public static Item compass
    • fishingRod

      public static ItemFishingRod fishingRod
    • pocketSundial

      public static Item pocketSundial
    • glowstone

      public static Item glowstone
    • fishRaw

      public static Item fishRaw
    • fishCooked

      public static Item fishCooked
    • dyePowder

      public static Item dyePowder
    • bone

      public static Item bone
    • sugar

      public static Item sugar
    • cake

      public static Item cake
    • bed

      public static Item bed
    • redstoneRepeater

      public static Item redstoneRepeater
    • map

      public static ItemMap map
    • shears

      public static ItemShears shears
    • melon

      public static Item melon
    • pumpkinSeeds

      public static Item pumpkinSeeds
    • melonSeeds

      public static Item melonSeeds
    • beefRaw

      public static Item beefRaw
    • beefCooked

      public static Item beefCooked
    • chickenRaw

      public static Item chickenRaw
    • chickenCooked

      public static Item chickenCooked
    • rottenFlesh

      public static Item rottenFlesh
    • enderPearl

      public static Item enderPearl
    • blazeRod

      public static Item blazeRod
    • ghastTear

      public static Item ghastTear
    • goldNugget

      public static Item goldNugget
    • netherStalkSeeds

      public static Item netherStalkSeeds
    • potion

      public static ItemPotion potion
    • glassBottle

      public static Item glassBottle
    • spiderEye

      public static Item spiderEye
    • fermentedSpiderEye

      public static Item fermentedSpiderEye
    • blazePowder

      public static Item blazePowder
    • magmaCream

      public static Item magmaCream
    • brewingStand

      public static Item brewingStand
    • cauldron

      public static Item cauldron
    • eyeOfEnder

      public static Item eyeOfEnder
    • speckledMelon

      public static Item speckledMelon
    • monsterPlacer

      public static Item monsterPlacer
    • expBottle

      public static Item expBottle
      Bottle o' Enchanting. Drops between 1 and 3 experience orbs when thrown.
    • fireballCharge

      public static Item fireballCharge
    • writableBook

      public static Item writableBook
    • writtenBook

      public static Item writtenBook
    • emerald

      public static Item emerald
    • itemFrame

      public static Item itemFrame
    • flowerPot

      public static Item flowerPot
    • carrot

      public static Item carrot
    • potato

      public static Item potato
    • bakedPotato

      public static Item bakedPotato
    • poisonousPotato

      public static Item poisonousPotato
    • emptyMap

      public static ItemEmptyMap emptyMap
    • goldenCarrot

      public static Item goldenCarrot
    • skull

      public static Item skull
    • carrotOnAStick

      public static Item carrotOnAStick
    • netherStar

      public static Item netherStar
    • pumpkinPie

      public static Item pumpkinPie
    • firework

      public static Item firework
    • fireworkCharge

      public static Item fireworkCharge
    • enchantedBook

      public static ItemEnchantedBook enchantedBook
    • comparator

      public static Item comparator
    • netherrackBrick

      public static Item netherrackBrick
    • netherQuartz

      public static Item netherQuartz
    • minecartTnt

      public static Item minecartTnt
    • minecartHopper

      public static Item minecartHopper
    • horseArmorIron

      public static Item horseArmorIron
    • horseArmorGold

      public static Item horseArmorGold
    • horseArmorDiamond

      public static Item horseArmorDiamond
    • leash

      public static Item leash
    • nameTag

      public static Item nameTag
    • record13

      public static Item record13
    • recordCat

      public static Item recordCat
    • recordBlocks

      public static Item recordBlocks
    • recordChirp

      public static Item recordChirp
    • recordFar

      public static Item recordFar
    • recordMall

      public static Item recordMall
    • recordMellohi

      public static Item recordMellohi
    • recordStal

      public static Item recordStal
    • recordStrad

      public static Item recordStrad
    • recordWard

      public static Item recordWard
    • record11

      public static Item record11
    • recordWait

      public static Item recordWait
    • itemID

      public final int itemID
      The ID of this item.
    • maxStackSize

      protected int maxStackSize
      Maximum size of the stack.
    • bFull3D

      protected boolean bFull3D
    • hasSubtypes

      protected boolean hasSubtypes
      Some items (like dyes) have multiple subtypes on same item, this is field define this behavior
    • itemIcon

      @Environment(CLIENT) public Icon itemIcon
      Icon index in the icons table.
    • iconString

      protected String iconString
      The string associated with this Item's Icon.
    • suppressConflictWarnings

      public static boolean suppressConflictWarnings
    • BASE_HERBIVORE_ITEM_FOOD_VALUE

      public static final int BASE_HERBIVORE_ITEM_FOOD_VALUE
      See Also:
    • BASE_PIG_ITEM_FOOD_VALUE

      public static final int BASE_PIG_ITEM_FOOD_VALUE
      See Also:
    • BASE_CHICKEN_ITEM_FOOD_VALUE

      public static final int BASE_CHICKEN_ITEM_FOOD_VALUE
      See Also:
    • defaultFurnaceBurnTime

      protected int defaultFurnaceBurnTime
    • isInceratedInCrucible

      protected boolean isInceratedInCrucible
  • Constructor Details

    • Item

      public Item(int par1)
  • Method Details

    • setMaxStackSize

      public Item setMaxStackSize(int par1)
    • getSpriteNumber

      public int getSpriteNumber()
      Returns 0 for /terrain.png, 1 for /gui/items.png
    • getIconFromDamage

      public Icon getIconFromDamage(int par1)
      Gets an icon index based on an item's damage value
    • getIconIndex

      public final Icon getIconIndex(ItemStack par1ItemStack)
      Returns the icon index of the stack given as argument.
    • onItemUse

      public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
      Callback for item usage. If the item does something special on right clicking, he will have one of those. Return True if something happen and false if it don't. This is for ITEMS, not BLOCKS
    • onItemRightClick

      public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
      // +++START EDIT+++ // ---END EDIT--- Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer
    • onEaten

      public ItemStack onEaten(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
    • getItemStackLimit

      public int getItemStackLimit()
      Returns the maximum size of the stack for a specific item. *Isn't this more a Set than a Get?*
    • getMetadata

      public int getMetadata(int par1)
      Returns the metadata of the block which this Item (ItemBlock) can place
    • getHasSubtypes

      public boolean getHasSubtypes()
    • setHasSubtypes

      protected Item setHasSubtypes(boolean par1)
    • getMaxDamage

      public int getMaxDamage()
      Returns the maximum damage an item can take.
    • setMaxDamage

      protected Item setMaxDamage(int par1)
      set max damage of an Item
    • isDamageable

      public boolean isDamageable()
    • getItemRightClickCooldown

      public long getItemRightClickCooldown()
    • setItemRightClickCooldown

      public Item setItemRightClickCooldown(long ticks)
    • hitEntity

      public boolean hitEntity(ItemStack par1ItemStack, EntityLivingBase par2EntityLivingBase, EntityLivingBase par3EntityLivingBase)
      Current implementations of this method in child classes do not use the entry argument beside ev. They just raise the damage on the stack.
    • onBlockDestroyed

      public boolean onBlockDestroyed(ItemStack par1ItemStack, World par2World, int par3, int par4, int par5, int par6, EntityLivingBase par7EntityLivingBase)
    • itemInteractionForEntity

      public boolean itemInteractionForEntity(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, EntityLivingBase par3EntityLivingBase)
      Returns true if the item can be used on the given entity, e.g. shears on sheep.
    • setFull3D

      public Item setFull3D()
      Sets bFull3D to True and return the object.
    • isFull3D

      public boolean isFull3D()
      Returns True is the item is renderer in full 3D when hold.
    • shouldRotateAroundWhenRendering

      public boolean shouldRotateAroundWhenRendering()
      Returns true if this item should be rotated by 180 degrees around the Y axis when being held in an entities hands.
    • setUnlocalizedName

      public Item setUnlocalizedName(String par1Str)
      Sets the unlocalized name of this item to the string passed as the parameter, prefixed by "item."
    • getUnlocalizedNameInefficiently

      public String getUnlocalizedNameInefficiently(ItemStack par1ItemStack)
      Translates the unlocalized name of this item, but without the .name suffix, so the translation fails and the unlocalized name itself is returned.
    • getUnlocalizedName

      public String getUnlocalizedName()
      Returns the unlocalized name of this item.
    • getUnlocalizedName

      public String getUnlocalizedName(ItemStack par1ItemStack)
      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.
    • setContainerItem

      public Item setContainerItem(Item par1Item)
    • doesContainerItemLeaveCraftingGrid

      public boolean doesContainerItemLeaveCraftingGrid(ItemStack par1ItemStack)
      If this returns true, after a recipe involving this item is crafted the container item will be added to the player's inventory instead of remaining in the crafting grid.
    • getShareTag

      public boolean getShareTag()
      If this function returns true (or the item is damageable), the ItemStack's NBT tag will be sent to the client.
    • hideFromEMI

      public Item hideFromEMI()
      Removes this item from the EMI sidebar. Does not remove from recipes.
    • getContainerItem

      public Item getContainerItem()
    • hasContainerItem

      public boolean hasContainerItem()
      True if this Item has a container item (a.k.a. crafting result)
    • getStatName

      public String getStatName()
    • getItemStackDisplayName

      public String getItemStackDisplayName(ItemStack par1ItemStack)
    • getColorFromItemStack

      public int getColorFromItemStack(ItemStack par1ItemStack, int par2)
    • onUpdate

      public void onUpdate(ItemStack stack, World world, EntityPlayer entity, int iInventorySlot, boolean bIsHandHeldItem)
      Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and update it's contents.
    • onCreated

      public void onCreated(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
      Called when item is crafted/smelted. Used only by maps so far.
    • isMap

      public boolean isMap()
      false for all Items except sub-classes of ItemMapBase
    • getItemUseAction

      public EnumAction getItemUseAction(ItemStack par1ItemStack)
      returns the action that specifies what animation to play when the items is being used
    • getMaxItemUseDuration

      public int getMaxItemUseDuration(ItemStack par1ItemStack)
      How long it takes to use or consume an item
    • onPlayerStoppedUsing

      public void onPlayerStoppedUsing(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer, int par4)
      called when the player releases the use item button. Args: itemstack, world, entityplayer, itemInUseCount
    • setPotionEffect

      public Item setPotionEffect(String par1Str)
      Sets the string representing this item's effect on a potion when used as an ingredient.
    • getPotionEffect

      public String getPotionEffect()
      Returns a string representing what this item does to a potion.
    • isPotionIngredient

      public boolean isPotionIngredient()
      Returns true if this item serves as a potion ingredient (its ingredient information is not null).
    • addInformation

      public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
      allows items to add custom lines of information to the mouseover description
    • getItemDisplayName

      public String getItemDisplayName(ItemStack par1ItemStack)
    • hasEffect

      public boolean hasEffect(ItemStack par1ItemStack)
    • getRarity

      public EnumRarity getRarity(ItemStack par1ItemStack)
      Return an item rarity from EnumRarity
    • isItemTool

      public boolean isItemTool(ItemStack par1ItemStack)
      Checks isDamagable and if it cannot be stacked
    • getMovingObjectPositionFromPlayer

      protected MovingObjectPosition getMovingObjectPositionFromPlayer(World par1World, EntityPlayer par2EntityPlayer, boolean par3)
    • getItemEnchantability

      public int getItemEnchantability()
      Return the enchantability factor of the item, most of the time is based on material.
    • requiresMultipleRenderPasses

      public boolean requiresMultipleRenderPasses()
    • getIconFromDamageForRenderPass

      public Icon getIconFromDamageForRenderPass(int par1, int par2)
      Gets an icon index based on an item's damage value and the given render pass
    • getSubItems

      public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List)
      returns a list of items with the same ID, but different meta (eg: dye returns 16 items)
    • getCreativeTab

      public CreativeTabs getCreativeTab()
      gets the CreativeTab this item is displayed on
    • setCreativeTab

      public Item setCreativeTab(CreativeTabs par1CreativeTabs)
      returns this;
    • getModId

      public String getModId()
      Mod ID (same as in fabric.mod.json) of mod that adds this item.
    • setModID

      public void setModID(String modID)
      Mod ID (same as in fabric.mod.json) of mod that adds this item.
    • getIsRepairable

      public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack)
      Return whether this item is repairable in an anvil.
    • registerIcons

      public void registerIcons(IconRegister par1IconRegister)
    • canItemBeUsedByPlayer

      public boolean canItemBeUsedByPlayer(World world, int i, int j, int k, int iFacing, EntityPlayer player, ItemStack stack)
      Method which replaces canPlaceItemBlockOnSide() in ItemBlock. Allows the client to prevent item usage before it is relayed to the server by returning false. Only called on client.
    • doZombiesConsume

      public boolean doZombiesConsume()
    • isEfficientVsBlock

      public boolean isEfficientVsBlock(ItemStack stack, World world, Block block, int i, int j, int k)
    • canHarvestBlock

      public boolean canHarvestBlock(ItemStack stack, World world, Block block, int i, int j, int k)
    • getStrVsBlock

      public float getStrVsBlock(ItemStack stack, World world, Block block, int i, int j, int k)
    • isMultiUsePerClick

      public boolean isMultiUsePerClick()
    • getExhaustionOnUsedToHarvestBlock

      public float getExhaustionOnUsedToHarvestBlock(int iBlockID, World world, int i, int j, int k, int iBlockMetadata)
    • initializeStackOnGiveCommand

      public void initializeStackOnGiveCommand(Random rand, ItemStack stack)
    • updateUsingItem

      public void updateUsingItem(ItemStack stack, World world, EntityPlayer player)
    • getItemUseWarmupDuration

      public int getItemUseWarmupDuration()
    • ignoreDamageWhenComparingDuringUse

      public boolean ignoreDamageWhenComparingDuringUse()
    • getHerbivoreFoodValue

      public int getHerbivoreFoodValue(int iItemDamage)
    • setHerbivoreFoodValue

      public Item setHerbivoreFoodValue(int iFoodValue)
    • setAsBasicHerbivoreFood

      public Item setAsBasicHerbivoreFood()
    • getChickenFoodValue

      public int getChickenFoodValue(int iItemDamage)
    • setChickenFoodValue

      public Item setChickenFoodValue(int iFoodValue)
    • setAsBasicChickenFood

      public Item setAsBasicChickenFood()
    • getPigFoodValue

      public int getPigFoodValue(int iItemDamage)
    • setPigFoodValue

      public Item setPigFoodValue(int iFoodValue)
    • setAsBasicPigFood

      public Item setAsBasicPigFood()
    • isWolfFood

      public boolean isWolfFood()
    • getWolfHealAmount

      public int getWolfHealAmount()
    • setBuoyancy

      public Item setBuoyancy(float fBuoyancy)
    • setBuoyant

      public Item setBuoyant()
    • setNonBuoyant

      public Item setNonBuoyant()
    • setNeutralBuoyant

      public Item setNeutralBuoyant()
    • getBuoyancy

      public float getBuoyancy(int iItemDamage)
    • setInfernalMaxNumEnchants

      public Item setInfernalMaxNumEnchants(int iMaxNumEnchants)
    • getInfernalMaxNumEnchants

      public int getInfernalMaxNumEnchants()
    • setInfernalMaxEnchantmentCost

      public Item setInfernalMaxEnchantmentCost(int iMaxEnchantmentCost)
    • getInfernalMaxEnchantmentCost

      public int getInfernalMaxEnchantmentCost()
    • isEnchantmentApplicable

      public boolean isEnchantmentApplicable(Enchantment enchantment)
    • isConsumedInCrafting

      public boolean isConsumedInCrafting()
    • isDamagedInCrafting

      public boolean isDamagedInCrafting()
    • onUsedInCrafting

      public void onUsedInCrafting(int iItemDamage, EntityPlayer player, ItemStack outputStack)
    • onUsedInCrafting

      public void onUsedInCrafting(EntityPlayer player, ItemStack outputStack)
    • onDamagedInCrafting

      public void onDamagedInCrafting(EntityPlayer player)
    • onBrokenInCrafting

      public void onBrokenInCrafting(EntityPlayer player)
    • getFurnaceBurnTime

      public int getFurnaceBurnTime(int iItemDamage)
    • setfurnaceburntime

      public Item setfurnaceburntime(int iBurnTime)
    • setfurnaceburntime

      public Item setfurnaceburntime(FurnaceBurnTime burnTime)
    • getCampfireBurnTime

      public int getCampfireBurnTime(int iItemDamage)
    • getCanItemStartFireOnUse

      public boolean getCanItemStartFireOnUse(int iItemDamage)
      Used to override default activation behavior on certain blocks like accessing inventory on furnace and campfires
    • getCanItemBeSetOnFireOnUse

      public boolean getCanItemBeSetOnFireOnUse(int iItemDamage)
      Used to override default activation behavior on certain blocks like accessing inventory on furnace and campfires
    • getCanBeFedDirectlyIntoCampfire

      public boolean getCanBeFedDirectlyIntoCampfire(int iItemDamage)
    • getCanBeFedDirectlyIntoBrickOven

      public boolean getCanBeFedDirectlyIntoBrickOven(int iItemDamage)
    • isIncineratedInCrucible

      public boolean isIncineratedInCrucible()
    • setIncineratedInCrucible

      public Item setIncineratedInCrucible()
    • setNotIncineratedInCrucible

      public Item setNotIncineratedInCrucible()
    • doesConsumeContainerItemWhenCrafted

      public boolean doesConsumeContainerItemWhenCrafted(Item containerItem)
    • setAllPicksToBeEffectiveVsBlock

      public static void setAllPicksToBeEffectiveVsBlock(Block block)
    • setAllAxesToBeEffectiveVsBlock

      public static void setAllAxesToBeEffectiveVsBlock(Block block)
    • setAllShovelsToBeEffectiveVsBlock

      public static void setAllShovelsToBeEffectiveVsBlock(Block block)
    • onItemUsedByBlockDispenser

      public boolean onItemUsedByBlockDispenser(ItemStack stack, World world, int i, int j, int k, int iFacing)
      This method should return true if the item is successfully placed (in which case the BD will consume the corresponding item in its inventory), false otherwise. Co-ordinates specify the BD position.
    • hasCustomItemEntity

      public boolean hasCustomItemEntity()
    • getCustomItemEntity

      public Class getCustomItemEntity()
    • setCustomItemEntity

      public void setCustomItemEntity(Class entityClass)
    • createItemAsEntityInWorld

      public EntityItem createItemAsEntityInWorld(World world, double x, double y, double z, ItemStack stack)
    • canItemEditBlocks

      public boolean canItemEditBlocks()
      Returns true if players can use this item to affect the world (e.g. placing blocks, placing ender eyes in portal) when not in creative
    • getHopperFilterIcon

      @Environment(CLIENT) public Icon getHopperFilterIcon()
    • getAnimationIcon

      public Icon getAnimationIcon(EntityPlayer player)
      Used to change the item icon the player is holding. Used in bow pulling and casting fishing rod
    • getItemAttributeModifiers

      public com.google.common.collect.Multimap getItemAttributeModifiers()
      Gets a map of item attribute modifiers, used by ItemSword to increase hit damage.
    • shouldApplyAttributesWhenHeld

      public boolean shouldApplyAttributesWhenHeld()
    • shouldApplyAttributesWhenWorn

      public boolean shouldApplyAttributesWhenWorn()
    • setTextureName

      public Item setTextureName(String par1Str)
    • getIconString

      protected String getIconString()
      Returns the string associated with this Item's Icon.