use of net.modificationstation.stationapi.api.client.gui.screen.menu.AchievementPage in project StationAPI by ModificationStation.
the class AchievementPageImpl method registerAchievements.
@EventListener(priority = ListenerPriority.HIGH)
private static void registerAchievements(AchievementRegisterEvent event) {
AchievementPage page = new AchievementPage(MODID, "minecraft");
List<Achievement> list = new ArrayList<>();
for (Object o : Achievements.ACHIEVEMENTS) list.add((Achievement) o);
page.addAchievements(list.toArray(new Achievement[0]));
}
Aggregations