Search in sources :

Example 1 with AchievementPage

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]));
}
Also used : AchievementPage(net.modificationstation.stationapi.api.client.gui.screen.menu.AchievementPage) Achievement(net.minecraft.achievement.Achievement) EventListener(net.mine_diver.unsafeevents.listener.EventListener)

Aggregations

EventListener (net.mine_diver.unsafeevents.listener.EventListener)1 Achievement (net.minecraft.achievement.Achievement)1 AchievementPage (net.modificationstation.stationapi.api.client.gui.screen.menu.AchievementPage)1