Class InfinteUnlitTorchBlockItem

Direct Known Subclasses:
FiniteUnlitTorchBlockItem

public class InfinteUnlitTorchBlockItem extends ItemBlock
  • Constructor Details

    • InfinteUnlitTorchBlockItem

      public InfinteUnlitTorchBlockItem(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
    • getCanItemBeSetOnFireOnUse

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

      public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
      Description copied from class: Item
      // +++START EDIT+++ // ---END EDIT--- Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer
      Overrides:
      onItemRightClick in class Item
    • onRightClickOnIgniter

      protected ItemStack onRightClickOnIgniter(ItemStack stack, World world, EntityPlayer player)
    • isPlayerClickingOnIgniter

      protected boolean isPlayerClickingOnIgniter(ItemStack stack, World world, EntityPlayer player)
    • canPlaceItemBlockOnSide

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