Package net.fabricmc.loom.util.service
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,ForgeModClassesService,ForgeSourcesService,ForgeToolService,IntermediateMappingsService,KotlinClasspathService,LorenzMappingService,MappingsService,McpExecutor,MigrateClassTweakerMappingsService,MigrateMappingsService,MigrateSourceCodeMappingsService,MixinAPMappingService,MixinRefmapService,SourceMappingsService,SourceRemapperService,StepLogic,TinyMappingsService,TinyRemapperService,UnpickRemapperService,UnpickService
A service is used to manage a set of data or a task that may be reused multiple times.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe base type of options class for a service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final OGets the options for this service.protected ServiceFactoryReturn the factory that created this service, this can be used to get nested services.
-
Constructor Details
-
Service
-
-
Method Details
-
getOptions
Gets the options for this service.- Returns:
- The options.
-
getServiceFactory
Return the factory that created this service, this can be used to get nested services.- Returns:
- The
ServiceFactoryinstance.
-