@@ -29,71 +29,76 @@ public FileEnchantRarity(File folder, File f) {
2929 enchants = new ArrayList <>();
3030 addEnchantRarity (this );
3131 }
32+
3233 public String getIdentifier () {
3334 return folder .getName ();
3435 }
3536
3637 public String [] getRevealedEnchantRarities () {
3738 return yml .getString ("reveals enchant rarities" ).split (";" );
3839 }
40+
3941 public List <String > getRevealedEnchantMsg () {
4042 if (revealedEnchantMsg == null )
41- revealedEnchantMsg = api .colorizeListString (
42- yml .getStringList ("reveal enchant msg" ));
43+ revealedEnchantMsg = api .colorizeListString (yml .getStringList ("reveal enchant msg" ));
4344 return revealedEnchantMsg ;
4445 }
46+
4547 public ItemStack getRevealItem () {
4648 if (revealItem == null )
4749 revealItem = api .d (yml , "reveal item" );
4850 return getClone (revealItem , null );
4951 }
52+
5053 public ItemStack getRevealedItem () {
5154 if (revealedItem == null )
5255 revealedItem = api .d (yml , "revealed item" );
5356 return getClone (revealedItem , null );
5457 }
58+
5559 public String getNameColors () {
56- return ChatColor .translateAlternateColorCodes ('&' ,
57- yml .getString ("revealed item.name colors" ));
60+ return ChatColor .translateAlternateColorCodes ('&' , yml .getString ("revealed item.name colors" ));
5861 }
62+
5963 public String getApplyColors () {
60- return ChatColor .translateAlternateColorCodes ('&' ,
61- yml .getString ("revealed item.apply colors" ));
64+ return ChatColor .translateAlternateColorCodes ('&' , yml .getString ("revealed item.apply colors" ));
6265 }
66+
6367 public boolean percentsAddUpto100 () {
6468 return yml .getBoolean ("settings.success+destroy=100" );
6569 }
70+
6671 public String getSuccess () {
67- return ChatColor .translateAlternateColorCodes ('&' ,
68- yml .getString ("settings.success" ));
72+ return ChatColor .translateAlternateColorCodes ('&' , yml .getString ("settings.success" ));
6973 }
74+
7075 public String getDestroy () {
71- return ChatColor .translateAlternateColorCodes ('&' ,
72- yml .getString ("settings.destroy" ));
76+ return ChatColor .translateAlternateColorCodes ('&' , yml .getString ("settings.destroy" ));
7377 }
78+
7479 public List <String > getLoreFormat () {
7580 if (loreFormat == null )
76- loreFormat = api .colorizeListString (
77- yml .getStringList ("settings.lore format" ));
81+ loreFormat = api .colorizeListString (yml .getStringList ("settings.lore format" ));
7882 return loreFormat ;
7983 }
84+
8085 public int getSuccessSlot () {
8186 return getLoreFormat ().indexOf ("{SUCCESS}" );
8287 }
88+
8389 public int getDestroySlot () {
8490 return getLoreFormat ().indexOf ("{DESTROY}" );
8591 }
92+
8693 public Firework getFirework () {
8794 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 ]));
9498 }
9599 return firework ;
96100 }
101+
97102 public List <CustomEnchant > getEnchants () {
98103 return enchants ;
99104 }
0 commit comments