@@ -29,71 +29,76 @@ public FileEnchantRarity(File folder, File f) {
29
29
enchants = new ArrayList <>();
30
30
addEnchantRarity (this );
31
31
}
32
+
32
33
public String getIdentifier () {
33
34
return folder .getName ();
34
35
}
35
36
36
37
public String [] getRevealedEnchantRarities () {
37
38
return yml .getString ("reveals enchant rarities" ).split (";" );
38
39
}
40
+
39
41
public List <String > getRevealedEnchantMsg () {
40
42
if (revealedEnchantMsg == null )
41
- revealedEnchantMsg = api .colorizeListString (
42
- yml .getStringList ("reveal enchant msg" ));
43
+ revealedEnchantMsg = api .colorizeListString (yml .getStringList ("reveal enchant msg" ));
43
44
return revealedEnchantMsg ;
44
45
}
46
+
45
47
public ItemStack getRevealItem () {
46
48
if (revealItem == null )
47
49
revealItem = api .d (yml , "reveal item" );
48
50
return getClone (revealItem , null );
49
51
}
52
+
50
53
public ItemStack getRevealedItem () {
51
54
if (revealedItem == null )
52
55
revealedItem = api .d (yml , "revealed item" );
53
56
return getClone (revealedItem , null );
54
57
}
58
+
55
59
public String getNameColors () {
56
- return ChatColor .translateAlternateColorCodes ('&' ,
57
- yml .getString ("revealed item.name colors" ));
60
+ return ChatColor .translateAlternateColorCodes ('&' , yml .getString ("revealed item.name colors" ));
58
61
}
62
+
59
63
public String getApplyColors () {
60
- return ChatColor .translateAlternateColorCodes ('&' ,
61
- yml .getString ("revealed item.apply colors" ));
64
+ return ChatColor .translateAlternateColorCodes ('&' , yml .getString ("revealed item.apply colors" ));
62
65
}
66
+
63
67
public boolean percentsAddUpto100 () {
64
68
return yml .getBoolean ("settings.success+destroy=100" );
65
69
}
70
+
66
71
public String getSuccess () {
67
- return ChatColor .translateAlternateColorCodes ('&' ,
68
- yml .getString ("settings.success" ));
72
+ return ChatColor .translateAlternateColorCodes ('&' , yml .getString ("settings.success" ));
69
73
}
74
+
70
75
public String getDestroy () {
71
- return ChatColor .translateAlternateColorCodes ('&' ,
72
- yml .getString ("settings.destroy" ));
76
+ return ChatColor .translateAlternateColorCodes ('&' , yml .getString ("settings.destroy" ));
73
77
}
78
+
74
79
public List <String > getLoreFormat () {
75
80
if (loreFormat == null )
76
- loreFormat = api .colorizeListString (
77
- yml .getStringList ("settings.lore format" ));
81
+ loreFormat = api .colorizeListString (yml .getStringList ("settings.lore format" ));
78
82
return loreFormat ;
79
83
}
84
+
80
85
public int getSuccessSlot () {
81
86
return getLoreFormat ().indexOf ("{SUCCESS}" );
82
87
}
88
+
83
89
public int getDestroySlot () {
84
90
return getLoreFormat ().indexOf ("{DESTROY}" );
85
91
}
92
+
86
93
public Firework getFirework () {
87
94
if (firework == null ) {
88
- final String [] a = yml .getString ("revealed item.firework" )
89
- .split (":" );
90
- firework = api .createFirework (
91
- FireworkEffect .Type .valueOf (a [0 ].toUpperCase ()),
92
- api .getColor (a [1 ]), api .getColor (a [2 ]),
93
- Integer .parseInt (a [3 ]));
95
+ final String [] a = yml .getString ("revealed item.firework" ).split (":" );
96
+ firework = api .createFirework (FireworkEffect .Type .valueOf (a [0 ].toUpperCase ()), api .getColor (a [1 ]),
97
+ api .getColor (a [2 ]), Integer .parseInt (a [3 ]));
94
98
}
95
99
return firework ;
96
100
}
101
+
97
102
public List <CustomEnchant > getEnchants () {
98
103
return enchants ;
99
104
}
0 commit comments