Advertisement
jadenquinn

IBoreHead.java

Sep 28th, 2018
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.31 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.util.ResourceLocation;
  12.  
  13. /**
  14.  * This interface it used to define an item that can
  15.  * be used as a bore head for the Tunnel Bore.
  16.  * @author CovertJaguar <http://www.railcraft.info>
  17.  */
  18. public interface IBoreHead
  19. {
  20.  
  21.     /**
  22.      * Return the texture file used for this bore head.
  23.      * @return The texture file path
  24.      */
  25.     ResourceLocation getBoreTexture();
  26.  
  27.     /**
  28.      * Return the harvest level of this bore head.
  29.      *
  30.      * This value is compared against the tool classes
  31.      * "pickaxe", "axe", and "shovel" to determine if the
  32.      * block is harvestable by the bore head.
  33.      *
  34.      * @return The harvest level
  35.      */
  36.     int getHarvestLevel();
  37.  
  38.     /**
  39.      * Return the dig speed modifier of this bore head.
  40.      *
  41.      * This value controls how much faster or slow this bore head
  42.      * mines each layer compared to the default time.
  43.      *
  44.      * @return The dig speed modifier
  45.      */
  46.     float getDigModifier();
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement