mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-16 18:55:06 +00:00
Add missing files from last commit
This commit is contained in:
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);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user