public class AdvancementList
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
AdvancementList.Listener |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ResourceLocation,Advancement> |
advancements |
private AdvancementList.Listener |
listener |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.Set<Advancement> |
nonRoots |
private java.util.Set<Advancement> |
roots |
Constructor and Description |
---|
AdvancementList() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Advancement |
getAdvancement(ResourceLocation id) |
java.lang.Iterable<Advancement> |
getAdvancements() |
java.lang.Iterable<Advancement> |
getRoots() |
void |
loadAdvancements(java.util.Map<ResourceLocation,Advancement.Builder> advancementsIn) |
private void |
remove(Advancement advancementIn) |
void |
removeAll(java.util.Set<ResourceLocation> ids) |
void |
setListener(AdvancementList.Listener listenerIn) |
private static final org.apache.logging.log4j.Logger LOGGER
private final java.util.Map<ResourceLocation,Advancement> advancements
private final java.util.Set<Advancement> roots
private final java.util.Set<Advancement> nonRoots
private AdvancementList.Listener listener
private void remove(Advancement advancementIn)
public void removeAll(java.util.Set<ResourceLocation> ids)
public void loadAdvancements(java.util.Map<ResourceLocation,Advancement.Builder> advancementsIn)
public void clear()
public java.lang.Iterable<Advancement> getRoots()
public java.lang.Iterable<Advancement> getAdvancements()
@Nullable public Advancement getAdvancement(ResourceLocation id)
public void setListener(@Nullable AdvancementList.Listener listenerIn)