Package net.minecraft.client.resources
Class JsonReloadListener
- java.lang.Object
-
- net.minecraft.client.resources.ReloadListener<java.util.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<java.util.Map<ResourceLocation,com.google.gson.JsonElement>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
directory
private com.google.gson.Gson
gson
private static org.apache.logging.log4j.Logger
LOGGER
private static int
PATH_SUFFIX_LENGTH
-
Constructor Summary
Constructors Constructor Description JsonReloadListener(com.google.gson.Gson p_i51536_1_, java.lang.String p_i51536_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ResourceLocation
getPreparedPath(ResourceLocation rl)
protected java.util.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
-
-
-
-
Method Detail
-
prepare
protected java.util.Map<ResourceLocation,com.google.gson.JsonElement> prepare(IResourceManager p_212854_1_, IProfiler p_212854_2_)
- Specified by:
prepare
in classReloadListener<java.util.Map<ResourceLocation,com.google.gson.JsonElement>>
-
getPreparedPath
protected ResourceLocation getPreparedPath(ResourceLocation rl)
-
-