Class DataGeneratorTest.BlockStates

java.lang.Object
net.minecraftforge.client.model.generators.BlockStateProvider
net.minecraftforge.debug.DataGeneratorTest.BlockStates
All Implemented Interfaces:
IDataProvider
Enclosing class:
DataGeneratorTest

public static class DataGeneratorTest.BlockStates extends BlockStateProvider
  • Field Details

    • LOGGER

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

      private static final Set<Block> IGNORED_BLOCKS
    • IGNORED_MODELS

      private static final Set<ResourceLocation> IGNORED_MODELS
    • CUSTOM_MODELS

      private static final Set<ResourceLocation> CUSTOM_MODELS
    • errors

      private List<String> errors
  • Constructor Details

  • Method Details

    • registerStatesAndModels

      protected void registerStatesAndModels()
      Specified by:
      registerStatesAndModels in class BlockStateProvider
    • run

      public void run(DirectoryCache cache) throws IOException
      Specified by:
      run in interface IDataProvider
      Overrides:
      run in class BlockStateProvider
      Throws:
      IOException
    • compareVariantBlockstates

      private void compareVariantBlockstates(Block block, com.google.gson.JsonObject generated, com.google.gson.JsonObject vanilla)
    • compareVariant

      private void compareVariant(Block block, String key, com.google.gson.JsonObject generatedVariant, com.google.gson.JsonObject vanillaVariant)
    • compareMultipartBlockstates

      private void compareMultipartBlockstates(Block block, com.google.gson.JsonObject generated, com.google.gson.JsonObject vanilla)
    • toEquivalentString

      private String toEquivalentString(com.google.gson.JsonElement element)
    • correctVariant

      private void correctVariant(com.google.gson.JsonObject variant)
    • compareArrays

      private boolean compareArrays(Block block, String key, String name, com.google.gson.JsonElement generated, com.google.gson.JsonElement vanilla)
    • blockstateError

      private void blockstateError(Block block, String fmt, Object... args)
    • getName

      public String getName()
      Specified by:
      getName in interface IDataProvider
      Overrides:
      getName in class BlockStateProvider