Advertisement
jadenquinn

IExplosiveCart.java

Sep 28th, 2018
415
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;
  10.  
  11. public interface IExplosiveCart
  12. {
  13.  
  14.     /**
  15.      * If set to true the cart should explode after
  16.      * whatever fuse duration is set.
  17.      *
  18.      * @param primed true if ready to explode
  19.      */
  20.     void setPrimed(boolean primed);
  21.  
  22.     /**
  23.      * Returns whether the cart is primed to explode.
  24.      *
  25.      * @return primed
  26.      */
  27.     boolean isPrimed();
  28.  
  29.     /**
  30.      * Returns the length of the current fuse.
  31.      *
  32.      * @return fuse length in ticks
  33.      */
  34.     int getFuse();
  35.  
  36.     /**
  37.      * Optional function to allow setting the fuse duration.
  38.      *
  39.      * Used by the Priming Track.
  40.      *
  41.      * @param fuse in ticks
  42.      */
  43.     void setFuse(int fuse);
  44.  
  45.     /**
  46.      * Returns the blast radius, but I don't think anything currently uses this.
  47.      *
  48.      * @return blast radius
  49.      */
  50.     float getBlastRadius();
  51.  
  52.     /**
  53.      * Optional function to allow setting the blast radius.
  54.      *
  55.      * @param radius the blast radius
  56.      */
  57.     void setBlastRadius(float radius);
  58.  
  59.     /**
  60.      * Causes the cart to explode immediately.
  61.      *
  62.      */
  63.     void explode();
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement