| package cofh.api.block; |
| |
| import net.minecraft.entity.player.EntityPlayer; |
| import net.minecraft.item.ItemStack; |
| import net.minecraft.world.World; |
| |
| /** |
| * Implemented on Blocks which have some method of being instantly dismantled. |
| * |
| * @author King Lemming |
| * |
| */ |
| public interface IDismantleable { |
| |
| /** |
| * Dismantles the block. If returnBlock is true, the drop(s) should be placed into the player's inventory. |
| */ |
| ItemStack dismantleBlock(EntityPlayer player, World world, int x, int y, int z, boolean returnBlock); |
| |
| /** |
| * Return true if the block can be dismantled. The criteria for this is entirely up to the block. |
| */ |
| boolean canDismantle(EntityPlayer player, World world, int x, int y, int z); |
| |
| } |