Package net.minecraft.data
Class BlockStateProvider
java.lang.Object
net.minecraft.data.BlockStateProvider
- All Implemented Interfaces:
IDataProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DataGeneratorprivate static final com.google.gson.Gsonprivate static final org.apache.logging.log4j.LoggerFields inherited from interface net.minecraft.data.IDataProvider
SHA1 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static PathcreateBlockStatePath(Path p_240082_0_, Block p_240082_1_) private static PathcreateModelPath(Path p_240083_0_, ResourceLocation p_240083_1_) getName()voidrun(DirectoryCache p_200398_1_) private <T> voidsaveCollection(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:
runin 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:
getNamein interfaceIDataProvider
-