Package net.minecraft.data.client
Class BlockStateDefinitionProvider
java.lang.Object
net.minecraft.data.client.BlockStateDefinitionProvider
- All Implemented Interfaces:
DataProvider
public class BlockStateDefinitionProvider extends Object implements DataProvider
-
Field Summary
Fields Modifier and Type Field Description private DataGeneratorgeneratorprivate static GsonGSONprivate static LoggerLOGGERFields inherited from interface net.minecraft.data.DataProvider
SHA1 -
Constructor Summary
Constructors Constructor Description BlockStateDefinitionProvider(DataGenerator generator) -
Method Summary
Modifier and Type Method Description private static PathgetBlockStateJsonPath(Path root, Block block)private static PathgetModelJsonPath(Path root, Identifier id)StringgetName()voidrun(DataCache cache)private <T> voidwriteJsons(DataCache cache, Path root, Map<T,? extends Supplier<JsonElement>> jsons, BiFunction<Path,T,Path> locator)
-
Field Details
-
LOGGER
-
GSON
-
generator
-
-
Constructor Details
-
BlockStateDefinitionProvider
-
-
Method Details
-
run
- Specified by:
runin interfaceDataProvider
-
writeJsons
private <T> void writeJsons(DataCache cache, Path root, Map<T,? extends Supplier<JsonElement>> jsons, BiFunction<Path,T,Path> locator) -
getBlockStateJsonPath
-
getModelJsonPath
-
getName
- Specified by:
getNamein interfaceDataProvider
-