Class BlockStateProvider

    • 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  
    • 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_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • GSON

        private static final com.google.gson.Gson GSON
    • Constructor Detail

      • BlockStateProvider

        public BlockStateProvider​(DataGenerator p_i232520_1_)
    • Method Detail

      • 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_)