public class TagGroupLoader<T> extends Object
Modifier and Type | Field and Description |
---|---|
private String |
dataType |
private String |
entryType |
private static Gson |
GSON |
private static int |
JSON_EXTENSION_LENGTH |
private static Logger |
LOGGER |
private Function<Identifier,Optional<T>> |
registryGetter |
Constructor and Description |
---|
TagGroupLoader(Function<Identifier,Optional<T>> registryGetter,
String dataType,
String entryType) |
Modifier and Type | Method and Description |
---|---|
TagGroup<T> |
applyReload(Map<Identifier,Tag.Builder> tags) |
CompletableFuture<Map<Identifier,Tag.Builder>> |
prepareReload(ResourceManager manager,
Executor prepareExecutor) |
private static final Logger LOGGER
private static final Gson GSON
private static final int JSON_EXTENSION_LENGTH
private final Function<Identifier,Optional<T>> registryGetter
private final String dataType
private final String entryType
public CompletableFuture<Map<Identifier,Tag.Builder>> prepareReload(ResourceManager manager, Executor prepareExecutor)
public TagGroup<T> applyReload(Map<Identifier,Tag.Builder> tags)