Class FireStarterItem

java.lang.Object
net.minecraft.src.Item
api.item.items.FireStarterItem
Direct Known Subclasses:
FireStarterItemPrimitive, FlintAndSteelItem

public abstract class FireStarterItem extends Item
  • Constructor Details

    • FireStarterItem

      public FireStarterItem(int iItemID, int iMaxUses, float fExhaustionPerUse)
  • Method Details

    • onItemUse

      public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int i, int j, int k, int iFacing, float fClickX, float fClickY, float fClickZ)
      Description copied from class: Item
      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
      Overrides:
      onItemUse in class Item
    • getCanItemStartFireOnUse

      public boolean getCanItemStartFireOnUse(int iItemDamage)
      Description copied from class: Item
      Used to override default activation behavior on certain blocks like accessing inventory on furnace and campfires
      Overrides:
      getCanItemStartFireOnUse in class Item
    • checkChanceOfStart

      protected abstract boolean checkChanceOfStart(ItemStack stack, Random rand)
    • performUseEffects

      protected void performUseEffects(EntityPlayer player)
    • attemptToLightBlock

      protected boolean attemptToLightBlock(ItemStack stack, World world, int i, int j, int k, int iFacing)
    • attemptToLightBlockRegardlessOfFlamability

      protected boolean attemptToLightBlockRegardlessOfFlamability(ItemStack stack, World world, int i, int j, int k, int iFacing)
    • notifyNearbyAnimalsOfAttempt

      public void notifyNearbyAnimalsOfAttempt(EntityPlayer player)