Minestom/src/main/java/net/minestom/server/advancements/AdvancementManager.java

21 lines
603 B
Java
Raw Normal View History

2020-08-05 10:56:16 +02:00
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);
}
}