Package net.minecraft.resource
Class JsonDataLoader
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloader<Map<Identifier,JsonElement>>
 
net.minecraft.resource.JsonDataLoader
- All Implemented Interfaces:
 ResourceReloader
- Direct Known Subclasses:
 RecipeManager,ServerAdvancementLoader
public abstract class JsonDataLoader
extends SinglePreparationResourceReloader<Map<Identifier,JsonElement>> 
An abstract implementation of resource reloader that reads JSON files
 into Gson representations in the prepare stage.
- Mappings:
 Namespace Name named net/minecraft/resource/JsonDataLoaderintermediary net/minecraft/class_4309official aui
- 
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic voidload(ResourceManager manager, String dataType, Gson gson, Map<Identifier, JsonElement> results) protected Map<Identifier, JsonElement> prepare(ResourceManager resourceManager, Profiler profiler) Prepares the intermediate object.Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloader
apply, 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
- Mappings:
 Namespace Name Mixin selector named LOGGERLnet/minecraft/resource/JsonDataLoader;LOGGER:Lorg/slf4j/Logger;intermediary field_19377Lnet/minecraft/class_4309;field_19377:Lorg/slf4j/Logger;official aLaui;a:Lorg/slf4j/Logger;
 - 
gson
- Mappings:
 Namespace Name Mixin selector named gsonLnet/minecraft/resource/JsonDataLoader;gson:Lcom/google/gson/Gson;intermediary field_19379Lnet/minecraft/class_4309;field_19379:Lcom/google/gson/Gson;official bLaui;b:Lcom/google/gson/Gson;
 - 
dataType
- Mappings:
 Namespace Name Mixin selector named dataTypeLnet/minecraft/resource/JsonDataLoader;dataType:Ljava/lang/String;intermediary field_19380Lnet/minecraft/class_4309;field_19380:Ljava/lang/String;official cLaui;c:Ljava/lang/String;
 
 - 
 - 
Constructor Details
- 
JsonDataLoader
- Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/resource/JsonDataLoader;<init>(Lcom/google/gson/Gson;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_4309;<init>(Lcom/google/gson/Gson;Ljava/lang/String;)Vofficial <init>Laui;<init>(Lcom/google/gson/Gson;Ljava/lang/String;)V
 
 - 
 - 
Method Details
- 
prepare
Description copied from class:SinglePreparationResourceReloaderPrepares the intermediate object.This method is called in the prepare executor in a reload.
- Specified by:
 preparein classSinglePreparationResourceReloader<Map<Identifier,JsonElement>> - Parameters:
 resourceManager- the resource managerprofiler- the prepare profiler- Returns:
 - the prepared object
 - Mappings:
 Namespace Name Mixin selector named prepareLnet/minecraft/resource/JsonDataLoader;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Ljava/util/Map;intermediary method_20731Lnet/minecraft/class_4309;method_20731(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Ljava/util/Map;official aLaui;a(Laue;Lbnf;)Ljava/util/Map;
 - 
load
public static void load(ResourceManager manager, String dataType, Gson gson, Map<Identifier, JsonElement> results) - Mappings:
 Namespace Name Mixin selector named loadLnet/minecraft/resource/JsonDataLoader;load(Lnet/minecraft/resource/ResourceManager;Ljava/lang/String;Lcom/google/gson/Gson;Ljava/util/Map;)Vintermediary method_51148Lnet/minecraft/class_4309;method_51148(Lnet/minecraft/class_3300;Ljava/lang/String;Lcom/google/gson/Gson;Ljava/util/Map;)Vofficial aLaui;a(Laue;Ljava/lang/String;Lcom/google/gson/Gson;Ljava/util/Map;)V
 
 -