content: package com.almostreliable.unified;
  
  import net.minecraft.world.item.crafting.RecipeManager;
  
  import com.almostreliable.unified.api.constant.ModConstants;
  import com.almostreliable.unified.unification.recipe.RecipeLink;
  import com.almostreliable.unified.unification.recipe.RecipeLinkFactory;
  
  import com.google.auto.service.AutoService;
  import net.fabricmc.api.EnvType;
  import net.fabricmc.loader.api.FabricLoader;
  
  import java.nio.file.Path;
  
  @AutoService(AlmostUnifiedPlatform.class)
  public class AlmostUnifiedPlatformFabric implements AlmostUnifiedPlatform {
  
      @Override
      public Platform getPlatform() {
          return Platform.FABRIC;
      }
  
      @Override
      public boolean isModLoaded(String modId) {
          return FabricLoader.getInstance().isModLoaded(modId);
      }
  
      @Override
      public boolean isClient() {
          return FabricLoader.getInstance().getEnvironmentType() == EnvType.CLIENT;
      }
  
      @Override
      public Path getConfigPath() {
          return FabricLoader.getInstance().getConfigDir().resolve(ModConstants.ALMOST_UNIFIED);
      }
  
      @Override
      public Path getDebugLogPath() {
          return FabricLoader
              .getInstance()
              .getGameDir()
              .resolve("logs")
              .resolve(ModConstants.ALMOST_UNIFIED)
              .resolve("debug");
      }
  
      @Override
      public RecipeLinkFactory getRecipeLinkFactory(RecipeManager recipeManager, boolean cache) {
          return RecipeLink::of;
      }
  }
  