Package net.minecraft.client.resources
Class JsonReloadListener
java.lang.Object
net.minecraft.client.resources.ReloadListener<Map<ResourceLocation,com.google.gson.JsonElement>>
net.minecraft.client.resources.JsonReloadListener
- All Implemented Interfaces:
IFutureReloadListener
- Direct Known Subclasses:
AdvancementManager
,LootModifierManager
,LootPredicateManager
,LootTableManager
,RecipeManager
public abstract class JsonReloadListener
extends ReloadListener<Map<ResourceLocation,com.google.gson.JsonElement>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private final com.google.gson.Gson
private static final org.apache.logging.log4j.Logger
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ResourceLocation
protected Map<ResourceLocation,
com.google.gson.JsonElement> prepare
(IResourceManager p_212854_1_, IProfiler p_212854_2_) Methods inherited from class net.minecraft.client.resources.ReloadListener
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.resources.IFutureReloadListener
getName
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
PATH_SUFFIX_LENGTH
private static final int PATH_SUFFIX_LENGTH -
gson
private final com.google.gson.Gson gson -
directory
-
-
Constructor Details
-
JsonReloadListener
-
-
Method Details
-
prepare
protected Map<ResourceLocation,com.google.gson.JsonElement> prepare(IResourceManager p_212854_1_, IProfiler p_212854_2_) - Specified by:
prepare
in classReloadListener<Map<ResourceLocation,
com.google.gson.JsonElement>>
-
getPreparedPath
-