1.2.1.42
Compatibility
Changes
This is a major new release. It may break earlier versions of mods that support Tesla. Please be patient as the other tesla mod devs update to this version.
- The mod ID has switched from Tesla to tesla. This is to comply with the new mod ID standars being enforced in 1.11
- There is now built in code to help render power bars to the screen.
- A duplicate tesla consumer capability field was removed. It was called TESLA_CONSUMER rather than CAPABILITY_CONSUMER
- Deprecated implementations of BaseTeslaContainer, InfiniteTeslaConsumer and InfiniteTeslaProducer were removed.
- Eleven new helper methods were added to the TeslaUtils. These can help make your code cleaner and ensure good practices are being followed.
- The BaseTeslaContainer implementation now uses getInputRate, getOutputRate and getCapacity to work in a dynamic way.
- It may be a good idea to add the latest version of Tesla to your dependency list, to prevent error reports with older versions.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:nctjd6hv:d3S9e0el"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:nctjd6hv:d3S9e0el"
}

