public class AdvancementManager extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
AdvancementManager.Listener |
Modifier and Type | Field and Description |
---|---|
private Map<Identifier,Advancement> |
advancements |
private Set<Advancement> |
dependents |
private AdvancementManager.Listener |
listener |
private static Logger |
LOGGER |
private Set<Advancement> |
roots |
Constructor and Description |
---|
AdvancementManager() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Advancement |
get(Identifier id) |
Collection<Advancement> |
getAdvancements() |
Iterable<Advancement> |
getRoots() |
void |
load(Map<Identifier,Advancement.Task> map) |
private void |
remove(Advancement advancement) |
void |
removeAll(Set<Identifier> advancements) |
void |
setListener(AdvancementManager.Listener listener) |
private static final Logger LOGGER
private final Map<Identifier,Advancement> advancements
private final Set<Advancement> roots
private final Set<Advancement> dependents
private AdvancementManager.Listener listener
@Environment(value=CLIENT) private void remove(Advancement advancement)
@Environment(value=CLIENT) public void removeAll(Set<Identifier> advancements)
public void load(Map<Identifier,Advancement.Task> map)
@Environment(value=CLIENT) public void clear()
public Iterable<Advancement> getRoots()
public Collection<Advancement> getAdvancements()
@Nullable public Advancement get(Identifier id)
@Environment(value=CLIENT) public void setListener(@Nullable AdvancementManager.Listener listener)