Search in sources :

Example 1 with LanternTreeLayout

use of org.lanternpowered.server.advancement.layout.LanternTreeLayout in project LanternServer by LanternPowered.

the class AdvancementTreeLayoutModule method registerDefaults.

@DelayedRegistration(RegistrationPhase.INIT)
@Override
public void registerDefaults() {
    for (AdvancementTree tree : AdvancementTreeRegistryModule.get().getAll()) {
        final LanternTreeLayout layout = new LanternTreeLayout(tree);
        layout.generate();
    }
}
Also used : AdvancementTree(org.spongepowered.api.advancement.AdvancementTree) LanternTreeLayout(org.lanternpowered.server.advancement.layout.LanternTreeLayout) DelayedRegistration(org.spongepowered.api.registry.util.DelayedRegistration)

Aggregations

LanternTreeLayout (org.lanternpowered.server.advancement.layout.LanternTreeLayout)1 AdvancementTree (org.spongepowered.api.advancement.AdvancementTree)1 DelayedRegistration (org.spongepowered.api.registry.util.DelayedRegistration)1