Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.15 KB | None | 0 0
  1. package railcraft.common.api.carts;
  2.  
  3. public interface IPrimableCart
  4. {
  5.  
  6.     /**
  7.      * If set to true the cart should explode after
  8.      * whatever fuse duration is set.
  9.      *
  10.      * @param primed
  11.      */
  12.     public void setPrimed(boolean primed);
  13.  
  14.     /**
  15.      * Returns whether the cart is primed to explode.
  16.      *
  17.      * @return primed
  18.      */
  19.     public boolean isPrimed();
  20.  
  21.     /**
  22.      * Returns the length of the current fuse.
  23.      *
  24.      * @return fuse length in ticks
  25.      */
  26.     public short getFuse();
  27.  
  28.     /**
  29.      * Optional function to allow setting the fuse duration.
  30.      *
  31.      * Used by the Priming Track.
  32.      *
  33.      * @param fuse in ticks
  34.      */
  35.     public void setFuse(int fuse);
  36.  
  37.     /**
  38.      * Returns the blast radius, but I don't think anything currently uses this.
  39.      *
  40.      * @return blast radius
  41.      */
  42.     public float getBlastRadius();
  43.  
  44.     /**
  45.      * Optional function to allow setting the blast radius.
  46.      *
  47.      * @param radius
  48.      */
  49.     public void setBlastRadius(float radius);
  50.  
  51.     /**
  52.      * Causes the cart to explode immediately.
  53.      *
  54.      */
  55.     public void explode();
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement