Class AchievementManager
- java.lang.Object
-
- net.frozenspace.frostlib.achievement.AchievementManager
-
public class AchievementManager extends java.lang.ObjectThis manager is used for storing all achievements created by this manager
-
-
Constructor Summary
Constructors Constructor Description AchievementManager(@NotNull org.bukkit.plugin.Plugin plugin)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Achievement.AchievementBuilderbuild(@NotNull java.lang.String key)Create a new instance ofAchievement.AchievementBuilderAchievement.AchievementBuilderbuild(@NotNull java.lang.String key, @NotNull java.lang.String title)Create a new instance ofAchievement.AchievementBuilderThis builder allow you to interact withDisplayfield of achievement@Nullable Achievementget(@NotNull java.lang.String key)Get the achievement using his creation key
-
-
-
Method Detail
-
get
@Nullable public @Nullable Achievement get(@NotNull @NotNull java.lang.String key)
Get the achievement using his creation key- Parameters:
key- The key used when creating this achievement- Returns:
- The achievement found or null
-
build
@NotNull public Achievement.AchievementBuilder build(@NotNull @NotNull java.lang.String key)
Create a new instance ofAchievement.AchievementBuilder- Parameters:
key- The key used for this achievement- Returns:
- The instance created
-
build
@NotNull public Achievement.AchievementBuilder build(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String title)
Create a new instance ofAchievement.AchievementBuilderThis builder allow you to interact withDisplayfield of achievement- Parameters:
key- The key used for this achievementtitle- The title of this achievement- Returns:
- The instance created
-
-