public class AdvancementManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static AdvancementList |
ADVANCEMENT_LIST |
private java.io.File |
advancementsDir |
static com.google.gson.Gson |
GSON |
private boolean |
hasErrored |
private static org.apache.logging.log4j.Logger |
LOGGER |
Constructor and Description |
---|
AdvancementManager(java.io.File advancementsDirIn) |
Modifier and Type | Method and Description |
---|---|
Advancement |
getAdvancement(ResourceLocation id) |
java.lang.Iterable<Advancement> |
getAdvancements() |
boolean |
hasErrored() |
private void |
loadBuiltInAdvancements(java.util.Map<ResourceLocation,Advancement.Builder> map) |
private java.util.Map<ResourceLocation,Advancement.Builder> |
loadCustomAdvancements() |
void |
reload() |
private static final org.apache.logging.log4j.Logger LOGGER
public static final com.google.gson.Gson GSON
private static final AdvancementList ADVANCEMENT_LIST
private final java.io.File advancementsDir
private boolean hasErrored
public AdvancementManager(@Nullable java.io.File advancementsDirIn)
public void reload()
public boolean hasErrored()
private java.util.Map<ResourceLocation,Advancement.Builder> loadCustomAdvancements()
private void loadBuiltInAdvancements(java.util.Map<ResourceLocation,Advancement.Builder> map)
@Nullable public Advancement getAdvancement(ResourceLocation id)
public java.lang.Iterable<Advancement> getAdvancements()