Advertisement
Guest User

Untitled

a guest
Feb 6th, 2019
757
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.26 KB | None | 0 0
  1. package me.jet315.prisonmines;
  2.  
  3.  
  4. public class JetsPrisonMinesAPI {
  5.  
  6.     /**
  7.      *
  8.      * @return All current active mines
  9.      */
  10.     Collection<Mine> getMines();
  11.  
  12.     /**
  13.      *
  14.      * @param block The block at the location you are searching for mines for
  15.      * @return A mine arraylist of mines that contain this block location
  16.      */
  17.     ArrayList<Mine> getMinesByBlock(Block block);
  18.  
  19.     /**
  20.      *
  21.      * @param loc The location at which you are searching for mines for
  22.      * @return A mine arraylist of mines that contain this location
  23.      */
  24.     ArrayList<Mine> getMinesByLocation(Location loc);
  25.  
  26.     /**
  27.      * @param mineName The mine you are trying to get
  28.      * @return The mine object, or null if it does not exist
  29.      */
  30.    Mine getMineByName(String mineName);
  31.  
  32.     /**
  33.      * This method should be called if you are removing a block from a certain/possible mine (it will locate the mine automatically)
  34.      * @param block The block that is being broken
  35.      */
  36.    void blockBreak(Block block);
  37.  
  38.     /**
  39.      * This method should be called if you are placing a block to a certain/possible mine (it will locate the mine automatically)
  40.      * @param block The block that is being placed
  41.      */
  42.    void blockPlace(Block block);
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement