Class RfgCacheService
java.lang.Object
com.gtnewhorizons.retrofuturagradle.mcp.RfgCacheService
- All Implemented Interfaces:
Serializable, BuildService<RfgCacheService.Parameters>
public abstract class RfgCacheService
extends Object
implements BuildService<RfgCacheService.Parameters>, Serializable
A shared build service that can fetch and provide cached forge, mapping, etc. data for various MC versions.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name you can use inServiceReferenceto obtain an instance of this service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RfgCacheServiceaccessForgeUserdev(String forgeVersion) accessMcpMappings(String mcVersion, String channel, String mcpVersion) static Provider<RfgCacheService> lazyAccess(Gradle gradle) lockCache(boolean shared) Acquires a lock on the RFG cache directory.static voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BuildService
getParameters
-
Field Details
-
NAME
The name you can use inServiceReferenceto obtain an instance of this service.- See Also:
-
-
Constructor Details
-
RfgCacheService
@Inject public RfgCacheService()
-
-
Method Details
-
lockCache
Acquires a lock on the RFG cache directory.- Parameters:
shared- Whether the lock can be shared with other shared locks (for reading only), if false it must be exclusive (for writing).- Returns:
- The lock acquired
-
register
-
access
-
lazyAccess
-
getRfgCachePath
-
getFgCachePath
-
accessForgeUserdev
-
accessMcpMappings
-