public abstract class TagsProvider<T> extends java.lang.Object implements IDataProvider
Modifier and Type | Field and Description |
---|---|
protected DataGenerator |
generator |
private static com.google.gson.Gson |
GSON |
private static org.apache.logging.log4j.Logger |
LOGGER |
protected Registry<T> |
registry |
protected java.util.Map<Tag<T>,Tag.Builder<T>> |
tagToBuilder |
HASH_FUNCTION
Modifier | Constructor and Description |
---|---|
protected |
TagsProvider(DataGenerator generatorIn,
Registry<T> registryIn) |
Modifier and Type | Method and Description |
---|---|
void |
act(DirectoryCache cache) |
protected Tag.Builder<T> |
getBuilder(Tag<T> tagIn) |
protected abstract java.nio.file.Path |
makePath(ResourceLocation id) |
protected abstract void |
registerTags() |
protected abstract void |
setCollection(TagCollection<T> colectionIn) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, save
private static final org.apache.logging.log4j.Logger LOGGER
private static final com.google.gson.Gson GSON
protected final DataGenerator generator
protected final java.util.Map<Tag<T>,Tag.Builder<T>> tagToBuilder
protected TagsProvider(DataGenerator generatorIn, Registry<T> registryIn)
protected abstract void registerTags()
public void act(DirectoryCache cache)
act
in interface IDataProvider
protected abstract void setCollection(TagCollection<T> colectionIn)
protected abstract java.nio.file.Path makePath(ResourceLocation id)
protected Tag.Builder<T> getBuilder(Tag<T> tagIn)