public class ItemListProvider extends Object implements DataProvider
| Modifier and Type | Field and Description |
|---|---|
private static Gson |
GSON |
private DataGenerator |
root |
SHA1| Constructor and Description |
|---|
ItemListProvider(DataGenerator dataGenerator) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
void |
run(DataCache cache) |
private static <T> JsonElement |
toJson(Registry<T> registry) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteToPathprivate static final Gson GSON
private final DataGenerator root
public ItemListProvider(DataGenerator dataGenerator)
public void run(DataCache cache) throws IOException
run in interface DataProviderIOExceptionprivate static <T> JsonElement toJson(Registry<T> registry)
public String getName()
getName in interface DataProvider