Package net.minecraft.resource
Class JsonDataLoader
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloadListener<Map<Identifier,JsonElement>>
net.minecraft.resource.JsonDataLoader
- All Implemented Interfaces:
ResourceReloadListener
- Direct Known Subclasses:
LootConditionManager
,LootFunctionManager
,LootManager
,RecipeManager
,ServerAdvancementLoader
public abstract class JsonDataLoader extends SinglePreparationResourceReloadListener<Map<Identifier,JsonElement>>
- Mappings:
Namespace Name official acz
intermediary net/minecraft/class_4309
named net/minecraft/resource/JsonDataLoader
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloadListener
ResourceReloadListener.Synchronizer
-
Field Summary
-
Constructor Summary
Constructors Constructor Description JsonDataLoader(Gson gson, String dataType)
-
Method Summary
Modifier and Type Method Description protected Map<Identifier,JsonElement>
prepare(ResourceManager resourceManager, Profiler profiler)
Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloadListener
apply, reload
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.ResourceReloadListener
getName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lacz;a:Lorg/apache/logging/log4j/Logger;
intermediary field_19377
Lnet/minecraft/class_4309;field_19377:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/resource/JsonDataLoader;LOGGER:Lorg/apache/logging/log4j/Logger;
-
FILE_SUFFIX_LENGTH
private static final int FILE_SUFFIX_LENGTH- Mappings:
Namespace Name Mixin selector official b
Lacz;b:I
intermediary field_19378
Lnet/minecraft/class_4309;field_19378:I
named FILE_SUFFIX_LENGTH
Lnet/minecraft/resource/JsonDataLoader;FILE_SUFFIX_LENGTH:I
-
gson
- Mappings:
Namespace Name Mixin selector official c
Lacz;c:Lcom/google/gson/Gson;
intermediary field_19379
Lnet/minecraft/class_4309;field_19379:Lcom/google/gson/Gson;
named gson
Lnet/minecraft/resource/JsonDataLoader;gson:Lcom/google/gson/Gson;
-
dataType
- Mappings:
Namespace Name Mixin selector official d
Lacz;d:Ljava/lang/String;
intermediary field_19380
Lnet/minecraft/class_4309;field_19380:Ljava/lang/String;
named dataType
Lnet/minecraft/resource/JsonDataLoader;dataType:Ljava/lang/String;
-
-
Constructor Details
-
JsonDataLoader
- Mappings:
Namespace Name Mixin selector official <init>
Lacz;<init>(Lcom/google/gson/Gson;Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_4309;<init>(Lcom/google/gson/Gson;Ljava/lang/String;)V
named <init>
Lnet/minecraft/resource/JsonDataLoader;<init>(Lcom/google/gson/Gson;Ljava/lang/String;)V
-
-
Method Details
-
prepare
- Specified by:
prepare
in classSinglePreparationResourceReloadListener<Map<Identifier,JsonElement>>
- Mappings:
Namespace Name Mixin selector official a
Lacz;a(Lacx;Laos;)Ljava/util/Map;
intermediary method_20731
Lnet/minecraft/class_4309;method_20731(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Ljava/util/Map;
named prepare
Lnet/minecraft/resource/JsonDataLoader;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Ljava/util/Map;
-