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