Package net.minecraft.data
Class BlockStateProvider
- java.lang.Object
-
- net.minecraft.data.BlockStateProvider
-
- All Implemented Interfaces:
IDataProvider
public class BlockStateProvider extends java.lang.Object implements IDataProvider
-
-
Field Summary
Fields Modifier and Type Field Description private DataGenerator
generator
private static com.google.gson.Gson
GSON
private static org.apache.logging.log4j.Logger
LOGGER
-
Fields inherited from interface net.minecraft.data.IDataProvider
SHA1
-
-
Constructor Summary
Constructors Constructor Description BlockStateProvider(DataGenerator p_i232520_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.nio.file.Path
createBlockStatePath(java.nio.file.Path p_240082_0_, Block p_240082_1_)
private static java.nio.file.Path
createModelPath(java.nio.file.Path p_240083_0_, ResourceLocation p_240083_1_)
java.lang.String
getName()
void
run(DirectoryCache p_200398_1_)
private <T> void
saveCollection(DirectoryCache p_240081_1_, java.nio.file.Path p_240081_2_, java.util.Map<T,? extends java.util.function.Supplier<com.google.gson.JsonElement>> p_240081_3_, java.util.function.BiFunction<java.nio.file.Path,T,java.nio.file.Path> p_240081_4_)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
GSON
private static final com.google.gson.Gson GSON
-
generator
private final DataGenerator generator
-
-
Constructor Detail
-
BlockStateProvider
public BlockStateProvider(DataGenerator p_i232520_1_)
-
-
Method Detail
-
run
public void run(DirectoryCache p_200398_1_)
- Specified by:
run
in interfaceIDataProvider
-
saveCollection
private <T> void saveCollection(DirectoryCache p_240081_1_, java.nio.file.Path p_240081_2_, java.util.Map<T,? extends java.util.function.Supplier<com.google.gson.JsonElement>> p_240081_3_, java.util.function.BiFunction<java.nio.file.Path,T,java.nio.file.Path> p_240081_4_)
-
createBlockStatePath
private static java.nio.file.Path createBlockStatePath(java.nio.file.Path p_240082_0_, Block p_240082_1_)
-
createModelPath
private static java.nio.file.Path createModelPath(java.nio.file.Path p_240083_0_, ResourceLocation p_240083_1_)
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceIDataProvider
-
-