Class InfiniteBurningTorchBlockItem

Direct Known Subclasses:
FiniteBurningTorchBlockItem, LegacyTorchBlockItem

public class InfiniteBurningTorchBlockItem extends ItemBlock
  • Constructor Details

    • InfiniteBurningTorchBlockItem

      public InfiniteBurningTorchBlockItem(int iItemID)
  • 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 PlaceAsBlockItem
    • 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
    • onUpdate

      public void onUpdate(ItemStack stack, World world, EntityPlayer entity, int iInventorySlot, boolean bIsHandHeldItem)
      Description copied from class: Item
      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.
      Overrides:
      onUpdate in class Item
    • getBlockID

      public int getBlockID()
      Description copied from class: ItemBlock
      Returns the blockID for this Item
      Overrides:
      getBlockID in class ItemBlock
    • attemptToLightBlock

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

      @Environment(CLIENT) public boolean canPlaceItemBlockOnSide(World world, int i, int j, int k, int iFacing, EntityPlayer player, ItemStack itemStack)
      Overrides:
      canPlaceItemBlockOnSide in class PlaceAsBlockItem