public class AdvancementList
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
AdvancementList.IListener |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ResourceLocation,Advancement> |
advancements |
private AdvancementList.IListener |
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.util.Collection<Advancement> |
getAll() |
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.IListener 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.IListener 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.util.Collection<Advancement> getAll()
@Nullable public Advancement getAdvancement(ResourceLocation id)
public void setListener(@Nullable AdvancementList.IListener listenerIn)