Add missing files from last commit

This commit is contained in:
tterrag1098 committed 2015-01-09 01:51:52 -05:00
1 parent 58a17dbe5a
commit fe241bf726
4 files changed
+189

No files matched your search

@@ -0,0 +1,29 @@
package com.cricketcraft.chisel.api;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
/**
* Implement this on items which can be used to chisel blocks.
*/
public interface IChiselItem extends IChiselMode {
/**
* Called when a block is chiseled using this item. This method is responsible for damaging and deleting the chisel item.
*
* @param stack
* The {@link ItemStack} being used
* @return True if this chisel should be damaged. False otherwise.
*/
void onChisel(World world, IInventory inv, int slot, ItemStack chisel, ItemStack target);
/**
* Gets the current target of this chisel.
*
* @param chisel
* @return The ItemStack this chisel is targeting. {@code null} if nothing is targeted.
*/
ItemStack getTarget(ItemStack chisel);
}