public abstract class AbstractTagProvider<T> extends Object implements DataProvider
Modifier and Type | Class and Description |
---|---|
static class |
AbstractTagProvider.ObjectBuilder<T> |
Modifier and Type | Field and Description |
---|---|
private static Gson |
GSON |
private static Logger |
LOGGER |
protected Registry<T> |
registry |
protected DataGenerator |
root |
private Map<Identifier,Tag.Builder> |
tagBuilders |
SHA1
Modifier | Constructor and Description |
---|---|
protected |
AbstractTagProvider(DataGenerator root,
Registry<T> registry) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
configure() |
protected AbstractTagProvider.ObjectBuilder<T> |
getOrCreateTagBuilder(Tag.Identified<T> identified) |
protected abstract Path |
getOutput(Identifier identifier) |
protected Tag.Builder |
method_27169(Tag.Identified<T> identified) |
void |
run(DataCache cache) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, writeToPath
private static final Logger LOGGER
private static final Gson GSON
protected final DataGenerator root
private final Map<Identifier,Tag.Builder> tagBuilders
protected AbstractTagProvider(DataGenerator root, Registry<T> registry)
protected abstract void configure()
public void run(DataCache cache)
run
in interface DataProvider
protected abstract Path getOutput(Identifier identifier)
protected AbstractTagProvider.ObjectBuilder<T> getOrCreateTagBuilder(Tag.Identified<T> identified)
protected Tag.Builder method_27169(Tag.Identified<T> identified)