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 DataGenerator
generator
private static Gson
GSON
private static Logger
LOGGER
Fields 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 Path
getBlockStateJsonPath(Path root, Block block)
private static Path
getModelJsonPath(Path root, Identifier id)
String
getName()
void
run(DataCache cache)
private <T> void
writeJsons(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:
run
in 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:
getName
in interfaceDataProvider
-