1313import net .swofty .type .generic .gui .inventory .item .GUIClickableItem ;
1414import net .swofty .type .generic .gui .inventory .item .GUIItem ;
1515import net .swofty .type .generic .user .HypixelPlayer ;
16+ import net .swofty .type .skyblockgeneric .gui .inventories .sbmenu .stats .GUICombatStats ;
17+ import net .swofty .type .skyblockgeneric .gui .inventories .sbmenu .stats .GUIGatheringStats ;
18+ import net .swofty .type .skyblockgeneric .gui .inventories .sbmenu .stats .GUIMiscStats ;
19+ import net .swofty .type .skyblockgeneric .gui .inventories .sbmenu .stats .GUIWisdomStats ;
1620import net .swofty .type .skyblockgeneric .item .SkyBlockItem ;
1721import net .swofty .type .skyblockgeneric .item .components .StandardItemComponent ;
1822import net .swofty .type .skyblockgeneric .item .updater .NonPlayerItemUpdater ;
@@ -192,23 +196,24 @@ public ItemStack.Builder getItem(HypixelPlayer p) {
192196 }
193197 });
194198
195- set (new GUIClickableItem (15 ) {
199+ set (new GUIClickableItem (15 ) { //Combat Stats
196200 @ Override
197201 public void run (InventoryPreClickEvent e , HypixelPlayer p ) {
198202 SkyBlockPlayer player = (SkyBlockPlayer ) p ;
203+ new GUICombatStats ().open (player );
199204 }
200205
201206 @ Override
202207 public ItemStack .Builder getItem (HypixelPlayer p ) {
203208 SkyBlockPlayer player = (SkyBlockPlayer ) p ;
204209 PlayerStatistics statistics = player .getStatistics ();
205- List <String > lore = new ArrayList <>(List .of ("§7Gives you a better chance at" , "§7fighting strong monsters. " ));
210+ List <String > lore = new ArrayList <>(List .of ("§7Gives you a better chance at" , "§7fighting strong monsters. " , " " ));
206211 List <ItemStatistic > stats = new ArrayList <>(List .of (ItemStatistic .HEALTH , ItemStatistic .DEFENSE , ItemStatistic .STRENGTH , ItemStatistic .INTELLIGENCE ,
207212 ItemStatistic .CRIT_CHANCE , ItemStatistic .CRIT_DAMAGE , ItemStatistic .BONUS_ATTACK_SPEED , ItemStatistic .ABILITY_DAMAGE , ItemStatistic .TRUE_DEFENSE ,
208213 ItemStatistic .FEROCITY , ItemStatistic .HEALTH_REGEN , ItemStatistic .VITALITY , ItemStatistic .MENDING , ItemStatistic .SWING_RANGE ));
209214
210215 statistics .allStatistics ().getOverall ().forEach ((statistic , value ) -> {
211- if (! value . equals ( statistic . getBaseAdditiveValue ()) && stats .contains (statistic )) {
216+ if (stats .contains (statistic )) {
212217 lore .add (" " + statistic .getDisplayColor () + statistic .getSymbol () + " " +
213218 StringUtility .toNormalCase (statistic .name ()) + " §f" +
214219 StringUtility .decimalify (value , 2 ) + statistic .getSuffix ());
@@ -223,22 +228,28 @@ public ItemStack.Builder getItem(HypixelPlayer p) {
223228 }
224229 });
225230
226- set (new GUIClickableItem (16 ) {
231+ set (new GUIClickableItem (16 ) { //Gathering Stats
227232 @ Override
228233 public void run (InventoryPreClickEvent e , HypixelPlayer p ) {
229234 SkyBlockPlayer player = (SkyBlockPlayer ) p ;
235+ new GUIGatheringStats ().open (player );
230236 }
231237
232238 @ Override
233239 public ItemStack .Builder getItem (HypixelPlayer p ) {
234240 SkyBlockPlayer player = (SkyBlockPlayer ) p ;
235241 PlayerStatistics statistics = player .getStatistics ();
236- List <String > lore = new ArrayList <>(List .of ("§7Lets you collect and harvest better" , "§7items, or more of them. " ));
242+ List <String > lore = new ArrayList <>(List .of ("§7Lets you collect and harvest better" , "§7items, or more of them. " , " " ));
237243 List <ItemStatistic > stats = new ArrayList <>(List .of (ItemStatistic .MINING_SPEED , ItemStatistic .MINING_FORTUNE , ItemStatistic .BREAKING_POWER ,
238- ItemStatistic .PRISTINE , ItemStatistic .FORAGING_FORTUNE , ItemStatistic .FARMING_FORTUNE ));
244+ ItemStatistic .PRISTINE , ItemStatistic .FORAGING_FORTUNE , ItemStatistic .FARMING_FORTUNE , ItemStatistic .MINING_SPREAD , ItemStatistic .GEMSTONE_SPREAD ,
245+ ItemStatistic .HUNTER_FORTUNE , ItemStatistic .SWEEP , ItemStatistic .ORE_FORTUNE , ItemStatistic .BLOCK_FORTUNE , ItemStatistic .DWARVEN_METAL_FORTUNE ,
246+ ItemStatistic .GEMSTONE_FORTUNE , ItemStatistic .WHEAT_FORTUNE , ItemStatistic .POTATO_FORTUNE , ItemStatistic .CARROT_FORTUNE , ItemStatistic .PUMPKIN_FORTUNE ,
247+ ItemStatistic .MELON_FORTUNE , ItemStatistic .CACTUS_FORTUNE , ItemStatistic .NETHER_WART_FORTUNE , ItemStatistic .COCOA_BEANS_FORTUNE , ItemStatistic .MUSHROOM_FORTUNE ,
248+ ItemStatistic .SUGAR_CANE_FORTUNE , ItemStatistic .FIG_FORTUNE , ItemStatistic .MANGROVE_FORTUNE
249+ ));
239250
240251 statistics .allStatistics ().getOverall ().forEach ((statistic , value ) -> {
241- if (! value . equals ( statistic . getBaseAdditiveValue ()) && stats .contains (statistic )) {
252+ if (stats .contains (statistic )) {
242253 lore .add (" " + statistic .getDisplayColor () + statistic .getSymbol () + " " +
243254 StringUtility .toNormalCase (statistic .name ()) + " §f" +
244255 StringUtility .decimalify (value , 2 ) + statistic .getSuffix ());
@@ -252,20 +263,24 @@ public ItemStack.Builder getItem(HypixelPlayer p) {
252263 }
253264 });
254265
255- set (new GUIClickableItem (24 ) {
266+ set (new GUIClickableItem (24 ) { //Wisdom Stats
256267 @ Override
257268 public void run (InventoryPreClickEvent e , HypixelPlayer p ) {
258269 SkyBlockPlayer player = (SkyBlockPlayer ) p ;
270+ new GUIWisdomStats ().open (player );
259271 }
260272
261273 @ Override
262274 public ItemStack .Builder getItem (HypixelPlayer p ) {
263275 SkyBlockPlayer player = (SkyBlockPlayer ) p ;
264276 PlayerStatistics statistics = player .getStatistics ();
265- List <String > lore = new ArrayList <>(List .of ("§7Increases the §3XP §7you gain on your" , "§7skills " ));
266- List <ItemStatistic > stats = new ArrayList <>(List .of ()); // WISDOM STATS
277+ List <String > lore = new ArrayList <>(List .of ("§7Increases the §3XP §7you gain on your" , "§7skills " , " " ));
278+ List <ItemStatistic > stats = new ArrayList <>(List .of (ItemStatistic .COMBAT_WISDOM , ItemStatistic .MINING_WISDOM , ItemStatistic .FARMING_WISDOM , ItemStatistic .FORAGING_WISDOM ,
279+ ItemStatistic .FISHING_WISDOM , ItemStatistic .ENCHANTING_WISDOM , ItemStatistic .ALCHEMY_WISDOM , ItemStatistic .CARPENTRY_WISDOM , ItemStatistic .RUNE_CRAFTING_WISDOM ,
280+ ItemStatistic .SOCIAL_WISDOM , ItemStatistic .TAMING_WISDOM , ItemStatistic .HUNTING_WISDOM
281+ )); // WISDOM STATS
267282 statistics .allStatistics ().getOverall ().forEach ((statistic , value ) -> {
268- if (! value . equals ( statistic . getBaseAdditiveValue ()) && stats .contains (statistic )) {
283+ if (stats .contains (statistic )) {
269284 lore .add (" " + statistic .getDisplayColor () + statistic .getSymbol () + " " +
270285 StringUtility .toNormalCase (statistic .name ()) + " §f" +
271286 StringUtility .decimalify (value , 2 ) + statistic .getSuffix ());
@@ -280,22 +295,25 @@ public ItemStack.Builder getItem(HypixelPlayer p) {
280295 }
281296 });
282297
283- set (new GUIClickableItem (25 ) {
298+ set (new GUIClickableItem (25 ) { //Misc Stats
284299 @ Override
285300 public void run (InventoryPreClickEvent e , HypixelPlayer p ) {
286301 SkyBlockPlayer player = (SkyBlockPlayer ) p ;
302+ new GUIMiscStats ().open (player );
287303 }
288304
289305 @ Override
290306 public ItemStack .Builder getItem (HypixelPlayer p ) {
291307 SkyBlockPlayer player = (SkyBlockPlayer ) p ;
292308 PlayerStatistics statistics = player .getStatistics ();
293- List <String > lore = new ArrayList <>(List .of ("§7Augments various aspects of your" , "§7gameplay! " ));
309+ List <String > lore = new ArrayList <>(List .of ("§7Augments various aspects of your" , "§7gameplay! " , " " ));
294310 List <ItemStatistic > stats = new ArrayList <>(List .of (ItemStatistic .SPEED , ItemStatistic .MAGIC_FIND , ItemStatistic .PET_LUCK ,
295- ItemStatistic .SEA_CREATURE_CHANCE , ItemStatistic .FISHING_SPEED , ItemStatistic .COLD_RESISTANCE , ItemStatistic .BONUS_PEST_CHANCE ));
311+ ItemStatistic .COLD_RESISTANCE , ItemStatistic .BONUS_PEST_CHANCE , ItemStatistic .HEAT_RESISTANCE , ItemStatistic .FEAR ,
312+ ItemStatistic .PULL , ItemStatistic .RESPIRATION , ItemStatistic .PRESSURE_RESISTANCE
313+ ));
296314
297315 statistics .allStatistics ().getOverall ().forEach ((statistic , value ) -> {
298- if (! value . equals ( statistic . getBaseAdditiveValue ()) && stats .contains (statistic )) {
316+ if (stats .contains (statistic )) {
299317 lore .add (" " + statistic .getDisplayColor () + statistic .getSymbol () + " " +
300318 StringUtility .toNormalCase (statistic .name ()) + " §f" +
301319 StringUtility .decimalify (value , 2 ) + statistic .getSuffix ());
0 commit comments