Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class EliteAPI{
- /**
- * Check if player has a full set of
- * a custom armor set.
- *
- * @param player
- * @return
- */
- public boolean hasFullSet(Player player);
- /**
- * Check if the item has the id of a
- * set piece.
- * @param item
- * @return
- */
- public boolean isArmorPiece(ItemStack item);
- /**
- * Get the name of the set the armor piece
- * belongs to
- * @param item
- * @return
- */
- public String getSetName(ItemStack item);
- /**
- * Check if the item has an effect
- * Mostly for weapons.
- * @param item
- * @param effect
- * @return
- */
- public boolean hasEffect(ItemStack item, String effect);
- /**
- * Check if the set the player is wearing contains
- * the effect that you are looking for.
- * @param player
- * @param effect
- * @return
- */
- public boolean hasEffect(Player player, String effect);
- /**
- * Get the 2nd argument given in the sets.yml
- * Damage:1.05 what will be returned is the number 1.05
- * @param player
- * @param effect
- * @return
- */
- public double getValue(Player player, String effect);
- /**
- * Get the 2nd argument given in the set.yml
- * for a weapon
- * @param player
- * @param effect
- * @return
- */
- public double getValueWeapon(@NonNull Player player, @NonNull String effect);
- /**
- * Get an armor upgrade item
- * @param set
- * @param percentage
- * @return
- */
- public ItemStack getUpgrade(String set, int percentage);
- /**
- * Get a crate item
- * @param crateName
- * @return
- */
- public ItemStack getCrate(String crateName);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement