Package net.minecraft.data.models
Class ModelProvider
java.lang.Object
net.minecraft.data.models.ModelProvider
- All Implemented Interfaces:
DataProvider
-
Field Summary
Modifier and TypeFieldDescriptionprivate DataGenerator
private static com.google.gson.Gson
private static org.apache.logging.log4j.Logger
Fields inherited from interface net.minecraft.data.DataProvider
SHA1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static Path
createBlockStatePath(Path p_125110_, Block p_125111_)
private static Path
createModelPath(Path p_125113_, ResourceLocation p_125114_)
getName()
void
private <T> void
saveCollection(HashCache p_125105_, Path p_125106_, Map<T,? extends Supplier<com.google.gson.JsonElement>> p_125107_, BiFunction<Path,T,Path> p_125108_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
GSON
private static final com.google.gson.Gson GSON -
generator
-
-
Constructor Details
-
ModelProvider
-
-
Method Details
-
run
- Specified by:
run
in interfaceDataProvider
-
saveCollection
-
createBlockStatePath
-
createModelPath
-
getName
- Specified by:
getName
in interfaceDataProvider
-