Class DataGeneratorTest.SoundDefinitions

java.lang.Object
net.minecraftforge.common.data.SoundDefinitionsProvider
net.minecraftforge.debug.DataGeneratorTest.SoundDefinitions
All Implemented Interfaces:
DataProvider
Enclosing class:
DataGeneratorTest

public static class DataGeneratorTest.SoundDefinitions extends SoundDefinitionsProvider
  • Field Details

    • LOGGER

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

      private final ExistingFileHelper helper
  • Constructor Details

  • Method Details

    • registerSounds

      public void registerSounds()
      Description copied from class: SoundDefinitionsProvider
      Registers the sound definitions that should be generated via one of the add methods.
      Specified by:
      registerSounds in class SoundDefinitionsProvider
    • run

      public CompletableFuture<?> run(CachedOutput cache)
      Specified by:
      run in interface DataProvider
      Overrides:
      run in class SoundDefinitionsProvider
    • test

      private void test()
    • reflect

      private com.google.gson.JsonObject reflect() throws ReflectiveOperationException
      Throws:
      ReflectiveOperationException
    • compareAndGatherErrors

      private List<String> compareAndGatherErrors(org.apache.commons.lang3.tuple.Triple<String,com.google.gson.JsonElement,com.google.gson.JsonElement> triple)
    • compare

      private List<String> compare(com.google.gson.JsonElement vanilla, @Nullable @Nullable com.google.gson.JsonElement generated)
    • comparePrimitives

      private List<String> comparePrimitives(com.google.gson.JsonPrimitive vanilla, com.google.gson.JsonElement generated)
    • compareObjects

      private List<String> compareObjects(com.google.gson.JsonObject vanilla, com.google.gson.JsonElement generated)
    • compareArrays

      private List<String> compareArrays(com.google.gson.JsonArray vanilla, com.google.gson.JsonElement generated)