Class FabricPlatformService

java.lang.Object
com.blamejared.contenttweaker.fabric.service.FabricPlatformService
All Implemented Interfaces:
com.blamejared.contenttweaker.core.service.PlatformService

public final class FabricPlatformService extends Object implements com.blamejared.contenttweaker.core.service.PlatformService
  • Constructor Details

    • FabricPlatformService

      public FabricPlatformService()
  • Method Details

    • gameDirectory

      public Path gameDirectory()
      Specified by:
      gameDirectory in interface com.blamejared.contenttweaker.core.service.PlatformService
    • locateResource

      public Path locateResource(String... components)
      Specified by:
      locateResource in interface com.blamejared.contenttweaker.core.service.PlatformService
    • findRegistryFromKey

      public <T> com.blamejared.contenttweaker.core.api.registry.GameRegistry<T> findRegistryFromKey(com.blamejared.contenttweaker.core.api.object.ObjectType<T> type, net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key)
      Specified by:
      findRegistryFromKey in interface com.blamejared.contenttweaker.core.service.PlatformService