Class SimpleJsonResourceReloadListener
java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<ResourceLocation,com.google.gson.JsonElement>>
net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
- All Implemented Interfaces:
PreparableReloadListener
- Direct Known Subclasses:
ItemModifierManager
,LootModifierManager
,LootTables
,PredicateManager
,RecipeManager
,ServerAdvancementManager
public abstract class SimpleJsonResourceReloadListener
extends SimplePreparableReloadListener<Map<ResourceLocation,com.google.gson.JsonElement>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleJsonResourceReloadListener
(com.google.gson.Gson p_10768_, String p_10769_) -
Method Summary
Modifier and TypeMethodDescriptionprotected ResourceLocation
protected Map<ResourceLocation,
com.google.gson.JsonElement> prepare
(ResourceManager p_10771_, ProfilerFiller p_10772_) Methods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener
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.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
gson
private final com.google.gson.Gson gson -
directory
-
-
Constructor Details
-
SimpleJsonResourceReloadListener
-
-
Method Details
-
prepare
protected Map<ResourceLocation,com.google.gson.JsonElement> prepare(ResourceManager p_10771_, ProfilerFiller p_10772_) - Specified by:
prepare
in classSimplePreparableReloadListener<Map<ResourceLocation,
com.google.gson.JsonElement>>
-
getPreparedPath
-