Advertisement
jadenquinn

IMineable.java

Sep 28th, 2018
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.44 KB | None | 0 0
  1. /*
  2.  * ******************************************************************************
  3.  *  Copyright 2011-2015 CovertJaguar
  4.  *
  5.  *  This work (the API) is licensed under the "MIT" License, see LICENSE.md for details.
  6.  * ***************************************************************************
  7.  */
  8.  
  9. package mods.railcraft.api.carts.bore;
  10.  
  11. import net.minecraft.entity.item.EntityMinecart;
  12. import net.minecraft.item.ItemStack;
  13. import net.minecraft.util.math.BlockPos;
  14. import net.minecraft.world.World;
  15.  
  16. /**
  17.  * This interface can be implemented by a block class to control whether a block can be
  18.  * mined by the bore without having to force the user to edit the configuration file.
  19.  *
  20.  * If the block is found to implement this class, any setting in the configuration
  21.  * is ignored for that block.
  22.  *
  23.  * Generally, the reason blocks are not minable by default is to prevent you
  24.  * from intentionally or accidentally boring through your base.
  25.  *
  26.  * @author CovertJaguar <http://www.railcraft.info>
  27.  */
  28. public interface IMineable
  29. {
  30.  
  31.     /**
  32.      * Called when the Bore attempts to mine the block. If it returns false,
  33.      * the Bore will halt operation.
  34.      *
  35.      * @param world The World
  36.      * @param bore The Bore entity
  37.      * @param head The BoreHead, item implements IBoreHead.
  38.      * @return true if mineable
  39.      * @see IBoreHead
  40.      */
  41.     boolean canMineBlock(World world, BlockPos pos, EntityMinecart bore, ItemStack head);
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement