public class ServerAdvancementLoader extends JsonDataLoader
ResourceReloadListener.Synchronizer
Modifier and Type | Field and Description |
---|---|
private LootConditionManager |
conditionManager |
private static Gson |
GSON |
private static Logger |
LOGGER |
private AdvancementManager |
manager |
Constructor and Description |
---|
ServerAdvancementLoader(LootConditionManager conditionManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
apply(Map<Identifier,JsonElement> map,
ResourceManager resourceManager,
Profiler profiler) |
Advancement |
get(Identifier id) |
Collection<Advancement> |
getAdvancements() |
prepare
reload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
private static final Logger LOGGER
private static final Gson GSON
private AdvancementManager manager
private final LootConditionManager conditionManager
public ServerAdvancementLoader(LootConditionManager conditionManager)
protected void apply(Map<Identifier,JsonElement> map, ResourceManager resourceManager, Profiler profiler)
apply
in class SinglePreparationResourceReloadListener<Map<Identifier,JsonElement>>
@Nullable public Advancement get(Identifier id)
public Collection<Advancement> getAdvancements()