Fabric gRPC API
ModrinthThis utility mod contains required libraries for implementing gRPC server/client in Fabric mods
gRPC-Fabric - gRPC-Java, packed as a mod
This mod uses Shade plugin to include all required dependencies for using gRPC-Java library in your Fabric mod. Some libraries were removed from the mod because they are already in use and downloaded by Minecraft client/server.
How to use
1. Add Modrinth repository
Since compiled jar file is stored on Modrinth, add their repository according to this guide.
2. Add mod dependency:
dependencies {
// ...
implementation 'maven.modrinth:fabric-grpc-api:1.0-fabric'
compileOnly 'org.apache.tomcat:annotations-api:6.0.53'
// ...
}
* Tomcat Annotations API aren't included because they're compile only.
Optionally you can use include directive so that your mod users don't have to download it manually. But keep in mind, that the size of your mode will increase by ~5MB.
dependencies {
// ...
include(implementation('maven.modrinth:fabric-grpc-api:1.0-fabric'))
compileOnly 'org.apache.tomcat:annotations-api:6.0.53'
// ...
}
3. (if using protobuf plugin) Specify grpc plugin artifact version
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.21.7"
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.58.0'
}
}
generateProtoTasks {
all()*.plugins {
grpc {}
}
}
}
Версии
FAQ
Как установить Fabric gRPC API?
Скачайте файл под свою версию Minecraft и загрузчик с этой страницы, затем положите .jar в папку mods (или plugins) и запустите игру.
Fabric gRPC API бесплатный?
Fabric gRPC API можно скачать бесплатно на Modgrid — мы ведём прямо к официальному источнику, без paywall и лишних установщиков.
Какие версии Minecraft поддерживает Fabric gRPC API?
Работает с Fabric. Поддерживаются версии 1.20.1–1.20.1. Список поддерживаемых версий и загрузчиков — в блоке загрузки на этой странице.

Комментарии 0
Пока нет комментариев. Будь первым, кто поделится мнением.