Minestom/src/main/java/net/minestom/server/advancements/AdvancementManager.java
2020-08-05 10:56:16 +02:00

21 lines
603 B
Java

package net.minestom.server.advancements;
import java.util.HashMap;
import java.util.Map;
public class AdvancementManager {
private Map<String, AdvancementTab> advancementTabMap = new HashMap<>();
public AdvancementTab createTab(String rootIdentifier, AdvancementRoot root) {
final AdvancementTab advancementTab = new AdvancementTab(rootIdentifier, root);
this.advancementTabMap.put(rootIdentifier, advancementTab);
return advancementTab;
}
public AdvancementTab getTab(String rootIdentifier) {
return advancementTabMap.get(rootIdentifier);
}
}