Package net.minecraft.server
Class ServerAdvancementLoader
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloader<Map<Identifier,JsonElement>>
net.minecraft.resource.JsonDataLoader
net.minecraft.server.ServerAdvancementLoader
- All Implemented Interfaces:
ResourceReloader
public class ServerAdvancementLoader extends JsonDataLoader
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer -
Field Summary
Fields Modifier and Type Field Description private LootConditionManagerconditionManagerprivate static GsonGSONprivate static LoggerLOGGERprivate AdvancementManagermanager -
Constructor Summary
Constructors Constructor Description ServerAdvancementLoader(LootConditionManager conditionManager) -
Method Summary
Modifier and Type Method Description protected voidapply(Map<Identifier,JsonElement> map, ResourceManager resourceManager, Profiler profiler)Handles the prepared intermediate object.Advancementget(Identifier id)Collection<Advancement>getAdvancements()Methods inherited from class net.minecraft.resource.JsonDataLoader
prepareMethods inherited from class net.minecraft.resource.SinglePreparationResourceReloader
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourceReloader
getName
-
Field Details
-
LOGGER
-
GSON
-
manager
-
conditionManager
-
-
Constructor Details
-
ServerAdvancementLoader
-
-
Method Details
-
apply
protected void apply(Map<Identifier,JsonElement> map, ResourceManager resourceManager, Profiler profiler)Description copied from class:SinglePreparationResourceReloaderHandles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- Specified by:
applyin classSinglePreparationResourceReloader<Map<Identifier,JsonElement>>- Parameters:
map- the prepared objectresourceManager- the resource managerprofiler- the apply profiler
-
get
-
getAdvancements
-