zh_cn:documentation:fabric_loom
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| zh_cn:documentation:fabric_loom [2023/04/29 07:35] – [分离客户端与常规代码] solidblock | zh_cn:documentation:fabric_loom [2024/08/17 11:07] (current) – Sync jeffreyg1228 | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| < | < | ||
| dependencies { | dependencies { | ||
| - | implementation project(path: | + | |
| + | } | ||
| + | </ | ||
| + | |||
| + | 如果你在多项目构建中使用分离源集,你还需要为其他项目客户端源集添加依赖项。 | ||
| + | |||
| + | < | ||
| + | dependencies { | ||
| + | clientImplementation project(": | ||
| } | } | ||
| </ | </ | ||
| Line 111: | Line 119: | ||
| source = sourceSets.test | source = sourceSets.test | ||
| } | } | ||
| + | |||
| + | // 删除内置服务器配置的示例 | ||
| + | remove server | ||
| } | } | ||
| Line 160: | Line 171: | ||
| } | } | ||
| } | } | ||
| + | |||
| + | // 创建 modExampleImplementation 和重映射 mods 的相关配置。 | ||
| + | createRemapConfigurations(sourceSets.example) | ||
| } | } | ||
| Line 245: | Line 259: | ||
| - 添加 Minecraft 的依赖。 | - 添加 Minecraft 的依赖。 | ||
| - 下载 Minecraft 资源文件(assets)。 | - 下载 Minecraft 资源文件(assets)。 | ||
| - | - 处理并包含模组增强的依赖(还可以导出并重映射嵌套的 JAR)。 | + | - 处理并包含模组增强的依赖。 |
| ==== 缓存 ==== | ==== 缓存 ==== | ||
| Line 257: | Line 271: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| * '' | * '' | ||
zh_cn/documentation/fabric_loom.1682753720.txt.gz · Last modified: 2023/04/29 07:35 by solidblock