EliteArmor
Search…
Developer API
The Developer API for EliteArmor.
The API of EliteArmor is very extensive and it allows you to create your own effects very easily.
1
public class EliteArmorAPI {
2
3
@Getter(lazy = true)
4
private static final EliteArmorAPI armorAPI;
5
6
/**
7
* Fetch all the armor sets loaded into the plugin
8
* @return
9
*/
10
public LinkedHashMap<String, Armor> getArmorSets();
11
12
public void loadEffects(Class<? extends Effect>... effects);
13
14
/**
15
* Create an armor set piece
16
* @param armorSet
17
* @param armorType
18
* @return
19
*/
20
public ItemStack createArmor(String armorSet, String armorType);
21
22
/**
23
* Create a armor set weapon
24
* @param armorSet
25
* @return
26
*/
27
public ItemStack createWeapon(String armorSet);
28
29
/**
30
* Create a heroic armor piece
31
* @param armorType
32
* @return
33
*/
34
public ItemStack createHeroic(String armorType);
35
36
/**
37
* Create a heroic armor piece and define color
38
* @param armorType
39
* @param color
40
* @return
41
*/
42
public ItemStack createHeroic(String armorType, Color color);
43
44
/**
45
* Convert an itemstack to a heroic version
46
* @param itemStack
47
* @return
48
*/
49
public ItemStack convert(ItemStack itemStack);
50
51
/**
52
* Convert an itemstack to heroic version
53
* of an armor set piece
54
* @param itemStack
55
* @param armorSet
56
* @return
57
*/
58
public ItemStack convert(ItemStack itemStack, String armorSet);
59
60
/**
61
* Create a heroic upgrade item with a defined chance
62
* @param chance
63
* @return
64
*/
65
public ItemStack getHeroicUpgrade(int chance);
66
67
/**
68
* Create a heroic upgrade item with a random chance
69
* @return
70
*/
71
public ItemStack getHeroicUpgrade();
72
73
public List<String> getActiveArmorSets(UUID uuid);
74
75
public List<String> getActiveArmorSets(Player player);
76
77
}
Copied!
Copy link