Twitch4J
What is this mod?
This mod by itself doesn't perform any functions in the game. It is a specialized library containing the Twitch4J API and all necessary dependencies for other mods that use this technology.
Main Purpose
The primary goal of creating this mod is to optimize the size of modifications. Instead of every developer including the full version of Twitch4J API in their projects, they can simply specify a dependency on this mod. This significantly reduces the final size of mods and simplifies dependency management.
Technical Features
To use the library in their projects, developers need to add the appropriate Maven repository and specify a dependency on twitch4j-fabric. The mod versions have a special numbering system: starting from Twitch4J 1.14.0, the format {Twitch4J version}+{mod version} is used, while for versions from 1.9 to 1.13.0, simply {Twitch4J version} is used.
repositories {
maven { url "https://maven.awakenedredstone.com"}
}
dependencies {
modImplementation "com.github.twitch4j:twitch4j-fabric:${project.twitch4j-fabric_version}"
}
