Package com.dashtiss.tpsnitch.platform
Class Services
java.lang.Object
com.dashtiss.tpsnitch.platform.Services
Provides access to platform-specific services for TPSnitch.
Uses Java's ServiceLoader to load implementations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IPlatformHelperProvides platform-specific helper implementation (e.g., Forge, Fabric). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PLATFORM
Provides platform-specific helper implementation (e.g., Forge, Fabric). Used to check environment/platform and mod loading status.
-
-
Constructor Details
-
Services
public Services()
-
-
Method Details
-
load
Loads a service implementation for the given interface using ServiceLoader.- Type Parameters:
T- Service type- Parameters:
clazz- Service interface class- Returns:
- Loaded service implementation
- Throws:
NullPointerException- if no implementation is found
-