Class CraftingTagAuditor

java.lang.Object
com.minecolonies.core.compatibility.CraftingTagAuditor

public class CraftingTagAuditor extends Object
This class analyzes the current crafting tags and generates a CSV file reporting on which items can be crafted by which crafter, as a way to verify that all intended items are covered by the appropriate crafters (or not). It also produces another file that just contains all tags for each item, both to check the crafting tags themselves and to help pick appropriate tags to add to the crafting tags if something is missing. The logic of evaluating recipes closely resembles JEIPlugin, but we want this to happen server-side without depending on anything from that.
  • Method Details

    • doRecipeAudit

      public static void doRecipeAudit(@NotNull @NotNull net.minecraft.server.MinecraftServer server, @NotNull @NotNull CustomRecipeManager customRecipeManager)
      Run the auditor to generate the output file.
      Parameters:
      server - the current Minecraft server
      customRecipeManager - the custom recipe manager (mainly used for loot checks)