Package net.minecraft.data
Class BlockStateProvider
java.lang.Object
net.minecraft.data.BlockStateProvider
- All Implemented Interfaces:
IDataProvider
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DataGenerator
private static final com.google.gson.Gson
private static final org.apache.logging.log4j.Logger
Fields inherited from interface net.minecraft.data.IDataProvider
SHA1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static Path
createBlockStatePath
(Path p_240082_0_, Block p_240082_1_) private static Path
createModelPath
(Path p_240083_0_, ResourceLocation p_240083_1_) getName()
void
run
(DirectoryCache p_200398_1_) private <T> void
saveCollection
(DirectoryCache p_240081_1_, Path p_240081_2_, Map<T, ? extends Supplier<com.google.gson.JsonElement>> p_240081_3_, BiFunction<Path, T, Path> p_240081_4_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
GSON
private static final com.google.gson.Gson GSON -
generator
-
-
Constructor Details
-
BlockStateProvider
-
-
Method Details
-
run
- Specified by:
run
in interfaceIDataProvider
-
saveCollection
private <T> void saveCollection(DirectoryCache p_240081_1_, Path p_240081_2_, Map<T, ? extends Supplier<com.google.gson.JsonElement>> p_240081_3_, BiFunction<Path, T, Path> p_240081_4_) -
createBlockStatePath
-
createModelPath
-
getName
- Specified by:
getName
in interfaceIDataProvider
-