Class ThrowableItem

java.lang.Object
net.minecraft.src.Item
btw.item.items.ThrowableItem
Direct Known Subclasses:
EggItem, SoulUrnItem

public abstract class ThrowableItem extends Item
  • Constructor Details

    • ThrowableItem

      public ThrowableItem(int iItemID)
  • Method Details

    • 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
    • onItemUsedByBlockDispenser

      public boolean onItemUsedByBlockDispenser(ItemStack stack, World world, int i, int j, int k, int iFacing)
      Description copied from class: Item
      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.
      Overrides:
      onItemUsedByBlockDispenser in class Item
    • spawnThrownEntity

      protected abstract void spawnThrownEntity(ItemStack stack, World world, EntityPlayer player)
    • getEntityFiredByByBlockDispenser

      protected abstract EntityThrowable getEntityFiredByByBlockDispenser(World world, double dXPos, double dYPos, double dZPos)