mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-07 03:10:19 +01:00
21 lines
603 B
Java
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);
|
||
|
}
|
||
|
|
||
|
}
|