Package net.minecraft.tag
Class TagGroupLoader<T>
java.lang.Object
net.minecraft.tag.TagGroupLoader<T>
public class TagGroupLoader<T> extends Object
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description TagGroupLoader(Function<Identifier,Optional<T>> registryGetter, String dataType, String entryType)
-
Method Summary
Modifier and Type Method Description TagGroup<T>
applyReload(Map<Identifier,Tag.Builder> tags)
CompletableFuture<Map<Identifier,Tag.Builder>>
prepareReload(ResourceManager manager, Executor prepareExecutor)
-
Field Details
-
LOGGER
-
GSON
-
JSON_EXTENSION_LENGTH
private static final int JSON_EXTENSION_LENGTH -
registryGetter
-
dataType
-
entryType
-
-
Constructor Details
-
TagGroupLoader
-
-
Method Details
-
prepareReload
public CompletableFuture<Map<Identifier,Tag.Builder>> prepareReload(ResourceManager manager, Executor prepareExecutor) -
applyReload
-