Class Service<O extends Service.Options>

java.lang.Object
net.fabricmc.loom.util.service.Service<O>
Type Parameters:
O - The options type.
Direct Known Subclasses:
AccessTransformerService, ClasspathGroupService, ClientEntriesService, ExampleService, ExampleService.AnotherService, ForgeExternalToolService, ForgeModClassesService, ForgeSourcesService, ForgeToolService, IntermediateMappingsService, KotlinClasspathService, LorenzMappingService, MappingsService, McpExecutor, MigrateClassTweakerMappingsService, MigrateMappingsService, MigrateSourceCodeMappingsService, MixinAPMappingService, MixinRefmapService, SourceMappingsService, SourceRemapperService, StepLogic, TinyMappingsService, TinyRemapperService, UnpickRemapperService, UnpickService

public abstract class Service<O extends Service.Options> extends Object
A service is used to manage a set of data or a task that may be reused multiple times.
  • Constructor Details

  • Method Details

    • getOptions

      protected final O getOptions()
      Gets the options for this service.
      Returns:
      The options.
    • getServiceFactory

      protected ServiceFactory getServiceFactory()
      Return the factory that created this service, this can be used to get nested services.
      Returns:
      The ServiceFactory instance.