public abstract class JsonDataLoader extends SinglePreparationResourceReloadListener<Map<Identifier,JsonElement>>
ResourceReloadListener.Synchronizer
Modifier and Type | Field and Description |
---|---|
private String |
dataType |
private static int |
FILE_SUFFIX_LENGTH |
private Gson |
gson |
private static Logger |
LOGGER |
Constructor and Description |
---|
JsonDataLoader(Gson gson,
String dataType) |
Modifier and Type | Method and Description |
---|---|
protected Map<Identifier,JsonElement> |
prepare(ResourceManager resourceManager,
Profiler profiler) |
apply, reload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
private static final Logger LOGGER
private static final int FILE_SUFFIX_LENGTH
private final Gson gson
private final String dataType
protected Map<Identifier,JsonElement> prepare(ResourceManager resourceManager, Profiler profiler)
prepare
in class SinglePreparationResourceReloadListener<Map<Identifier,JsonElement>>