Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * ******************************************************************************
- * Copyright 2011-2015 CovertJaguar
- *
- * This work (the API) is licensed under the "MIT" License, see LICENSE.md for details.
- * ***************************************************************************
- */
- package mods.railcraft.api.carts.bore;
- import net.minecraft.entity.item.EntityMinecart;
- import net.minecraft.item.ItemStack;
- import net.minecraft.util.math.BlockPos;
- import net.minecraft.world.World;
- /**
- * This interface can be implemented by a block class to control whether a block can be
- * mined by the bore without having to force the user to edit the configuration file.
- *
- * If the block is found to implement this class, any setting in the configuration
- * is ignored for that block.
- *
- * Generally, the reason blocks are not minable by default is to prevent you
- * from intentionally or accidentally boring through your base.
- *
- * @author CovertJaguar <http://www.railcraft.info>
- */
- public interface IMineable
- {
- /**
- * Called when the Bore attempts to mine the block. If it returns false,
- * the Bore will halt operation.
- *
- * @param world The World
- * @param bore The Bore entity
- * @param head The BoreHead, item implements IBoreHead.
- * @return true if mineable
- * @see IBoreHead
- */
- boolean canMineBlock(World world, BlockPos pos, EntityMinecart bore, ItemStack head);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement