Fabric gRPC API 图标

Fabric gRPC API

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0-fabric
本资源为搬运资源,原资源地址: https://modrinth.com/mod/fabric-grpc-api
资源信息

Minecraft 版本: 1.20.1

平台: fabric

标签: library

资源介绍

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 {}
        }
    }
}
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Downscaled+Reimagined gust

价格:0 墨喵币
下载量:0

查看详情
OreDictDumper

价格:0 墨喵币
下载量:0

查看详情
Custom Tree generator

价格:0 墨喵币
下载量:0

查看详情
Sprint By Default

价格:0 墨喵币
下载量:0

查看详情