SHARE
TWEET

Untitled

a guest Mar 6th, 2019 254 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class EliteAPI{
  2.  
  3.     /**
  4.      * Check if player has a full set of
  5.      * a custom armor set.
  6.      *
  7.      * @param player
  8.      * @return
  9.      */
  10.     public boolean hasFullSet(Player player);
  11.  
  12.     /**
  13.      * Check if the item has the id of a
  14.      * set piece.
  15.      * @param item
  16.      * @return
  17.      */
  18.     public boolean isArmorPiece(ItemStack item);
  19.  
  20.     /**
  21.      * Get the name of the set the armor piece
  22.      * belongs to
  23.      * @param item
  24.      * @return
  25.      */
  26.     public String getSetName(ItemStack item);
  27.  
  28.     /**
  29.      * Check if the item has an effect
  30.      * Mostly for weapons.
  31.      * @param item
  32.      * @param effect
  33.      * @return
  34.      */
  35.     public boolean hasEffect(ItemStack item, String effect);
  36.  
  37.     /**
  38.      * Check if the set the player is wearing contains
  39.      * the effect that you are looking for.
  40.      * @param player
  41.      * @param effect
  42.      * @return
  43.      */
  44.     public boolean hasEffect(Player player, String effect);
  45.  
  46.     /**
  47.      * Get the 2nd argument given in the sets.yml
  48.      * Damage:1.05 what will be returned is the number 1.05
  49.      * @param player
  50.      * @param effect
  51.      * @return
  52.      */
  53.     public double getValue(Player player, String effect);
  54.  
  55.     /**
  56.      * Get the 2nd argument given in the set.yml
  57.      * for a weapon
  58.      * @param player
  59.      * @param effect
  60.      * @return
  61.      */
  62.     public double getValueWeapon(@NonNull Player player, @NonNull String effect);
  63.  
  64.     /**
  65.      * Get an armor upgrade item
  66.      * @param set
  67.      * @param percentage
  68.      * @return
  69.      */
  70.     public ItemStack getUpgrade(String set, int percentage);
  71.  
  72.     /**
  73.      * Get a crate item
  74.      * @param crateName
  75.      * @return
  76.      */
  77.     public ItemStack getCrate(String crateName);
  78. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top