✅UserCosmetics
Users can disable, enable, remove, add, and get cosmetics.
UserCosmeticsFactory userCosmeticsFactory = MiniGame.getUserCosmeticsFactory();
UserCosmetics userCosmetics = userCosmeticsFactory.createUserCosmetics(player.getUniqueId());
UserCosmetics methods:
boolean hasCosmetic(Cosmetic cosmetic); //Checks having cosmetic
void removeCosmetic(Cosmetic cosmetic); //Removes cosmetic
void addCosmetic(Cosmetic cosmetic); // Adds cosmetic
boolean isCosmeticEnable(Cosmetic cosmetic); //Checks that cosmetic is enabled
void enableCosmetic(Cosmetic cosmetic); //Enables cosmetic
void disableCosmetic(Cosmetic cosmetic); //Disables cosmetic
Map<Cosmetic, Boolean> getCosmetics(); //Gets all user cosmetics
void setCosmetics(Map<Cosmetic, Boolean> cosmetics); //Sets cosmetics
void resetAllCosmetics(); //Rests all cosmetics for user
void resetAllCosmeticsCategory(String category); //Rests all cosmetics for one category
List<Cosmetic> getAllCosmeticsCategory(String category); //Gets all cosmetics by category name
List<Cosmetic> getActiveCosmeticsByCategory(String category); //Gets all enabled cosmetics with this category
Last updated