比特派钱包官网注册|fabric api
比特派钱包官网注册|fabric api
Just a moment...
a moment...Enable JavaScript and cookies to contiFabric | The home of the Fabric mod development toolchain.
Fabric | The home of the Fabric mod development toolchain.
Fabric
Download
Blog
Develop
Discuss
Wiki
Fabric Loader
Fabric is a modular, lightweight mod loader for Minecraft
Download
Play
The Fabric Loader download above is the bare minimum. Combine it with Fabric API to get all the important extra APIs mods use. It has to be put into the mods folder like any other mod.
Download Fabric API
Develop
Fabric gives you powerful tools to change the game however you like. Use the online template generator to get started creating a mod. You can also use the example mod repository or CLI tools.
Develop a mod
Explore
Extensive documentation is available in the Fabric wiki for both developers and players. Get additional help from the Fabric Discord server, or ask a question on the GitHub Discussion forums.
Visit the wiki
Core Toolchain Projects
Fabric Loader A flexible platform-independent mod loader designed for Minecraft and other games and applications.
Yarn Yarn is a set of open Minecraft mappings, free for everyone to use under the Creative Commons Zero license.
Fabric Loom A Gradle plugin enabling developers to easily develop and debug mods.
Fabric Language Kotlin This is a mod that enables usage of the Kotlin programming language for Fabric mods.
Intermediary Intermediary contains match information between different versions of Minecraft, enabling cross version mods.
Tiny Remapper A tiny, efficient tool for remapping JAR files.
Mapping IO A library for reading, manipulating and writing mapping files, with support a wide range fo formats.
Latest Blog Posts
Fabric for Minecraft 1.20.3 & 1.20.4
It’s only been two months since we published the last article on Minecraft updates, but here we are. Minecraft 1.20.3 is to be released in the near future with some changes affecting mod makers.
As usual, we ask players to be patient, and give mod developers time to update to this new version. Given the r...
Continue reading
Fabric for Minecraft 1.20.2
Minecraft 1.20.2 will be released in the near future, again with some changes that impact many mods.
As usual, we ask players to be patient, and give mod developers time to update to this new version.
Here is a list of all major modder-facing changes in this version. Note that all code references are usi...
Continue reading
The contents of this website, unless otherwise indicated, are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG.
Fabric API - MC百科|最大的Minecraft中文MOD百科
ic API - MC百科|最大的Minecraft中文MOD百科主站常用地址最新收录今日收录模组:20 个有新动态审核状态今日审核量:379 个历史编辑今日编辑量:484 次版本检索Forge 模组Fabric 模组1.20.1 模组1.19.4 模组1.18.2 模组1.16.5 模组1.12.2 模组1.7.10 模组元素检索科技模组魔法模组实用模组冒险模组农业模组装饰模组辅助模组魔改模组整合包常用地址最新收录今日收录整合包:0 个有新动态版本检索Forge 整合包Fabric 整合包1.20.1 整合包1.19.4 整合包1.18.2 整合包1.16.5 整合包1.12.2 整合包1.7.10 整合包元素检索科技整合包魔法整合包任务整合包剧情整合包硬核整合包休闲整合包大型整合包轻量整合包社群找服玩实用工具实用工具命令方块指令生成器快速生成自定义命令方块指令神秘时代研究助手快速查找神秘时代研究笔记连线进度/成就生成器Minecraft 进度/成就生成器工具我的世界黄历中国黄历 MineCraft 版神秘代码将一串内容压缩成一把钥匙遇事不决在退进两难的情况下抛硬币或投骰子特性词典站点导航主站整合包社群找服玩实用工具特性词典登录>LIBMod>Fabric API红票40 (89%)黑票5 (11%)模组属性评比73.33%的人认为Fabric...好玩。36.67%的人认为Fabric...太简单。70%的人认为Fabric...很稳定。80%的人认为Fabric...很实用。40%的人认为Fabric...很漂亮。70%的人认为Fabric...合理。73.33%的人认为Fabric...兼容好。66.67%的人认为Fabric...很耐玩。路过的这位少侠,你觉得这款Mod怎么样,可否愿意来评一评它呢?登录并评比更新日志更多0.73.2+1.19.42023-01-310.73.2+1.19.32023-01-310.62.0+1.19.22022-09-250.61.0+1.19.22022-09-110.60.0+1.19.22022-08-160.58.6+1.19.22022-08-070.59.0+1.19.22022-08-070.58.5+1.19.12022-07-280.58.4+1.19.12022-07-270.58.3+1.19.12022-07-27历史编辑记录更多[ 查看历史改动对比 ]管理组申请暂无管理组..编辑组申请暂无编辑组..开发组申请暂无开发组..最近参与编辑StewedTuba73416蛙趣HowardZHY远景只是爱摸鱼的鱼呀~NitsugaRawDiamondMCZacky重生是希望车神GinswayFeituoFlamarine法国球TigercrlYjn0241SomezakiKureha最近浏览xiaohuoniao吃西瓜moonnnnQQ酱248437子墨幻想遺留者一曲明清小沂QQ酱509387QQ酱788184QQ酱384276LinzelQQ酱732261w41k3rjinzi334千惠儿asdahdk活跃开源Fabric API支持平台: JAVA版 (JAVA Edition)运作方式: Fabric运行环境: 客户端可选, 服务端可选收录时间: 3年前编辑次数: 36次最后编辑: 2月前最后推荐: 4月前相关链接:官方CurseForgeModrinthGitHubMCBBS支持的MC版本: Fabric: 1.20.41.20.31.20.21.20.11.201.19.41.19.31.19.21.19.11.191.18.21.18.11.181.17.11.171.16.51.16.41.16.31.16.21.16.11.161.15.21.15.11.151.14.41.14.31.14.21.14.11.14Mod作者/开发团队: FabricMC所有者显示更多成员有 13 个已收录的整合包使用了 Fabric API 。 整合包检索5.0名扬天下昨日指数: 744昨日平均指数: 71.37957.48万总浏览--资料填充率编辑模组新建日志新建资料新建教程上传JSON发起讨论贡献统计指数走势下载本模组Mod介绍Mod教程 (3)Mod下载 (342)概述Fabric 由 Fabric-loom , Fabric-Loader 和 Fabric API 组成,其中 Fabric-Loader 是最基础的组件;在大多数情况下需要同时安装 Loader 和 API,面对开发者还需要 Fabric-loom。目前 Fabric-Loader 在官网支持以下的安装选项:Minecraft Launcher(原版启动器);Minecraft Server(原版服务端);MultiMC 启动器及其分支;CurseForge(整合包启动器);GDLauncher(整合包启动器);ATLauncher(整合包启动器);MCUpdater(整合包启动器);Technic(整合包启动器);portablemc(命令行);Metadata API(Launcher Dev)、对于开发者则需要去下载 官方示例 Mod (Github) 还有去 构建版本网站 检索版本。另在 Jenkins 上有 Fabric-installer 和 Fabric-Loader 的下载(已失效)。Fabric 官方 有较为完善的开发文档:Fabric Wiki(英文)。Fabric 官方 有中国玩家上传的中文开发和使用文档:Fabric Wiki(中文)。另在中文论坛上有玩家翻译的中文开发文档:MCBBS 。备注低版本移植:1.13.2~1.3.2:Legacy Fabric APIb1.7.3:Cursed Legacy APIFabric API 自从 0.59.0-1.19.2 和 0.59.0-1.18.2 版本开始,modid 更换为 fabric-api,但在 fabric.mod.json 里填入 fabric 仍然有效。关于 Fabric 的更详细页面介绍和安装使用方法请查看 Fabric 官网。Fabric-Server-Mod索引(管理类)(持续更新) 2.35万次浏览1年前加载内置模型,告别低效外部模型 483次浏览9月前Fabric 模组开发入门MC百科 (mcmod.cn) 的目标是为玩家提供更好的环境进行MOD学习和研究,并接纳、培养更多硬核玩家。提供Minecraft(我的世界)MOD(模组)物品资料介绍、教程攻略与MOD下载,致力于提高玩家的游戏体验。关于百科百科帮助开发日志捐赠百科关注百科B站微博联系百科意见反馈电子邮件©Copyright MC百科 2013-2024 mcmod.cn | 鄂ICP备11010313号-2 鄂公网安备 42030302000264号 [浏览器: 计算中..]MC百科(mcmod.cn) 除另有声明,所有开放公共编辑的内容均使用 BY-NC-SA 3.0Fabric API - Minecraft Mod
Fabric API - Minecraft Mod
ModsPluginsData PacksShadersResource PacksModpacks Sign in Get Modrinth AppModsPluginsData PacksShadersResource PacksModpacks Sign in SettingsChange theme SearchFabric APIModLightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain. Client or server Library6.76M downloads8,582 followersCreated3 years agoUpdateda day ago Follow Save Report Copy ID Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH. Ad via Adrinth DescriptionChangelogVersionsFabric API
Essential hooks for modding with Fabric.
Fabric API is the library for essential hooks and interoperability mechanisms for Fabric mods. Examples include:
Exposing functionality that is useful but difficult to access for many mods such as particles, biomes and dimensions
Adding events, hooks and APIs to improve interopability between mods.
Essential features such as registry synchronization and adding information to crash reports.
An advanced rendering API designed for compatibility with optimization mods and graphics overhaul mods.
Also check out Fabric Loader, the (mostly) version-independent mod loader that powers Fabric. Fabric API is a mod like any other Fabric mod which requires Fabric Loader to be installed.
For support and discussion for both developers and users, visit the Fabric Discord server.
Using Fabric API to play with mods
Make sure you have install fabric loader first. More information about installing Fabric Loader can be found here.
The downloaded jar file should be placed in your mods folder.
External resourcesIssuesSourceWikiDiscordFeatured versions See all [1.20.4] Fabric API 0.96.4+1.20.4Fabric 1.20.4 Release[1.20.2] Fabric API 0.91.6+1.20.2Fabric 1.20.2 Release[1.20.1] Fabric API 0.92.0+1.20.1Fabric 1.20.1 Release[1.19.4] Fabric API 0.87.2+1.19.4Fabric 1.19.4 Release[1.19.3] Fabric API 0.76.1+1.19.3Fabric 1.19.3 Release[1.19.2] Fabric API 0.77.0+1.19.2Fabric 1.19.2 Release[1.19] Fabric API 0.58.0+1.19Fabric 1.19 Release[1.18.2] Fabric API 0.77.0+1.18.2Fabric 1.18.2 Release[1.17.1] Fabric API 0.46.1+1.17Fabric 1.17.1 Release[1.16.5] Fabric API 0.42.0Fabric 1.16.5 Release[1.16.1] Fabric API 0.18.0 build 387Fabric 1.16.1 Release[1.15.2] Fabric API 0.28.5Fabric 1.15.2 Release[1.14.4] Fabric API 0.28.5Fabric 1.14.4 ReleaseProject membersmodmuss50 OwnersfPlayer1 OWNERTechnical informationLicenseApache-2.0Client sideoptionalServer sideoptionalProject IDP7dR8mSHModrinth is open source.modrinth/knossos prod@fe3e4ed© Rinth, Inc.CompanyTermsPrivacyRulesCareers ResourcesSupportBlogDocsStatusInteract Discord X (Twitter) Mastodon Crowdin Get Modrinth App Change theme SettingsNOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.
欢迎来到 Fabric Wiki! [Fabric Wiki]
欢迎来到 Fabric Wiki! [Fabric Wiki]
skip to content
Fabric Wiki
User Tools
RegisterLog In
Site Tools
Search
ToolsShow pagesourceOld revisionsBacklinksRecent ChangesMedia ManagerSitemapRegisterLog In>
Recent ChangesMedia ManagerSitemap
Trace: • 欢迎来到 Fabric Wiki!
zh_cn:start
Table of Contents
欢迎来到 Fabric Wiki!
玩家教程
模组开发者教程
安装
基础
物品
方块和方块实体
数据生成
世界生成
命令
事件
实体
流体
Mixin 和 ASM
杂项
Yarn
贡献 Fabric
文档
示例
贡献 wiki
欢迎来到 Fabric Wiki!
Fabric 是针对 Minecraft 1.14 及更高版本(含快照)的模块化模组制作工具链。
wiki 中的一些页面可能过时了或者还在撰写中。
该 wiki 还提供以下语言版本 :
English(英文)
Français(法语)
Deutsch(德语)
한국어(韩语)
Русский(俄语)
日本語(日语)
Español
同时如果要为中文 wiki 做贡献的话,请一定要看看中文 Fabric Wiki 翻译标准。
请一定要看看社区空间和规则!
常见问题(用户)
常见问题(专家) - 对前者细节的补充
玩家教程
如果你是玩家、服务器管理员或整合包作者,你应该查看 wiki 的玩家教程部分。
安装 Fabric Loader
更新 Fabric Loader
安装 Java
故障排除
模组开发者教程
如果你想开始使用 Fabric 开始开发,请访问此 wiki 的 模组开发者教程部分。
安装
开始(建立开发环境)
使用 Minotaur 在 Modrinth 上发布模组
使用 CurseGradle 发布模组
使用 MC-Publish 将模组发布到 Curseforge、Modrinth 和 Github
基础
Minecraft 模组开发基础
使用 Fabric 开发模组的介绍
阅读 Minecraft 代码
约定和术语
基本的约定和术语
服务器和客户端术语
注册
注册表介绍
标准注册表
开发工具
第三方模组库
应用更改而无需重新启动 Minecraft
创建语言文件
使用映射
物品
物品文档
演练:添加物品
为你的物品添加物品组
为你的物品添加物品提示
添加合成配方
添加盔甲
添加工具
添加盾牌
添加自定义附魔
添加模型谓词提供器
方块和方块实体
添加方块
赋予方块状态
制作带朝向的方块
让方块可含水
添加方块实体
让方块可以储存物品
动态更改方块或物品的颜色
操纵方块的外观
动态渲染方块与物品
使用自定义模型动态渲染方块和物品
使用方块实体渲染器动态渲染方块和物品
创建一个容器方块
使用扩展的 ScreenHandler 同步数据
使用 PropertyDelegate 同步整型数据
添加自定义的作物
数据生成
这些页面会带你了解 Fabric Data Generation API,可以通过数据生成器产生 JSON 文件。
开始了解数据生成
进度生成
战利品表生成
模型生成
标签生成
配方生成
语言文件生成
世界生成
维度概念
生成自定义矿石
添加地物
添加树木(高级)
添加结构地物(第三方教程)
添加生物群系(原版教程)
添加生物群系(旧版本)
自定义区块生成器(草稿)
添加世界预设
添加维度(原版教程)
创建自定义传送门
命令
创建命令
命令异常
命令建议
命令重定向
命令参数类型
命令示例
事件
这些页面会带你了解 Fabric API 中包含的很多事件,以及如果创建自己的事件以供其他模组使用。
监听事件
创建自定义的事件
将物品添加到已存在的战利品表
事件索引(草稿)
实体
添加实体
添加自定义刷怪蛋
创建自定义弹射物
流体
创建一种流体
Mixin 和 ASM
本页会带你了解如何使用 SpongePowered 的 Mixin 库,这是非常复杂的话题,建议您从头到尾阅读这些页面。
介绍
Mixin 注册
注入
访问器和调用器
重定向器
方法重定向器
小提示
示例
热交换 Mixin
导出 Mixin 类
访问加宽器
反射
接口注入
杂项
配方类型介绍
添加配方类型(草稿)
添加烹饪配方类型
添加切制配方类型
挖掘等级
全局世界数据
持久状态
主要成分
视线投射
自定义按键绑定
网络通信
药水效果
添加粒子
播放声音
自定义游戏规则
自定义数据/资源包资源
标签约定
一些有用的教程
添加玩家统计
开发模组的小技巧
DataFixer
流体、物品和能量转移
创建屏幕
Yarn
更新 Java 代码库中的 Yarn 映射
将 Yarn 升级到新的 Minecraft 版本 - 仅供 Yarn 开发者,普通用户和模组开发者请不要阅读此文!
贡献 Fabric
Fabric 接受新功能的过程 - 或者说如何让 Fabric 接受(或拒绝)你的新功能
FabLabs - 在提交 PR 之前起草新功能的试验场
GitHub 上的 Fabric
Yarn 命名映射的代码库 + 贡献相关文档
旧的教程请在这里查找存档的页面。
文档
如果你想知道 Fabric 工具链中的项目作用的方式,请访问 wiki 的 文档 部分。
fabric.mod.json 的规定
入口点
Mixin 库的 Wiki(英文)
Fabric 中的渲染(草稿)
构建 Fabric 的流水线(草稿)
Fabric Loader
Fabric Loom
示例
模组开发环境模板
Fabric API 测试模组(已过期) - 虽然不是教程,但应该还是能给你提供帮助
贡献 wiki
此 wiki 主要是由社区维护、面向社区的。如果你有兴趣为 wiki 作出贡献,请先检查以下页面:
Wiki Meta - wiki 贡献的起点
Wiki 议题 - 查看当前的议题,以及其他贡献者现在在做什么
中文翻译标准 - 将英文内容翻译成中文时,建议遵循的标准
zh_cn/start.txt · Last modified: 2024/01/02 10:40 by 39.173.107.171
Page Tools
Show pagesourceOld revisionsBacklinksBack to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
GitHub - FabricMC/fabric: Essential hooks for modding with Fabric.
GitHub - FabricMC/fabric: Essential hooks for modding with Fabric.
Skip to content
Toggle navigation
Sign in
Product
Actions
Automate any workflow
Packages
Host and manage packages
Security
Find and fix vulnerabilities
Codespaces
Instant dev environments
Copilot
Write better code with AI
Code review
Manage code changes
Issues
Plan and track work
Discussions
Collaborate outside of code
Explore
All features
Documentation
GitHub Skills
Blog
Solutions
For
Enterprise
Teams
Startups
Education
By Solution
CI/CD & Automation
DevOps
DevSecOps
Resources
Learning Pathways
White papers, Ebooks, Webinars
Customer Stories
Partners
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Pricing
Search or jump to...
Search code, repositories, users, issues, pull requests...
Search
Clear
Search syntax tips
Provide feedback
We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Cancel
Submit feedback
Saved searches
Use saved searches to filter your results more quickly
Name
Query
To see all available qualifiers, see our documentation.
Cancel
Create saved search
Sign in
Sign up
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
FabricMC
/
fabric
Public
Notifications
Fork
365
Star
2k
Essential hooks for modding with Fabric.
License
Apache-2.0 license
2k
stars
365
forks
Branches
Tags
Activity
Star
Notifications
Code
Issues
96
Pull requests
38
Discussions
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security
Insights
FabricMC/fabric
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.20.4BranchesTagsGo to fileCodeFolders and filesNameNameLast commit messageLast commit dateLatest commit History1,563 Commits.github.github deprecateddeprecated fabric-api-basefabric-api-base fabric-api-bomfabric-api-bom fabric-api-catalogfabric-api-catalog fabric-api-lookup-api-v1fabric-api-lookup-api-v1 fabric-biome-api-v1fabric-biome-api-v1 fabric-block-api-v1fabric-block-api-v1 fabric-block-view-api-v2fabric-block-view-api-v2 fabric-blockrenderlayer-v1fabric-blockrenderlayer-v1 fabric-client-tags-api-v1fabric-client-tags-api-v1 fabric-command-api-v2fabric-command-api-v2 fabric-content-registries-v0fabric-content-registries-v0 fabric-convention-tags-v1fabric-convention-tags-v1 fabric-crash-report-info-v1fabric-crash-report-info-v1 fabric-data-attachment-api-v1fabric-data-attachment-api-v1 fabric-data-generation-api-v1fabric-data-generation-api-v1 fabric-dimensions-v1fabric-dimensions-v1 fabric-entity-events-v1fabric-entity-events-v1 fabric-events-interaction-v0fabric-events-interaction-v0 fabric-game-rule-api-v1fabric-game-rule-api-v1 fabric-gametest-api-v1fabric-gametest-api-v1 fabric-item-api-v1fabric-item-api-v1 fabric-item-group-api-v1fabric-item-group-api-v1 fabric-key-binding-api-v1fabric-key-binding-api-v1 fabric-lifecycle-events-v1fabric-lifecycle-events-v1 fabric-loot-api-v2fabric-loot-api-v2 fabric-message-api-v1fabric-message-api-v1 fabric-mining-level-api-v1fabric-mining-level-api-v1 fabric-model-loading-api-v1fabric-model-loading-api-v1 fabric-networking-api-v1fabric-networking-api-v1 fabric-object-builder-api-v1fabric-object-builder-api-v1 fabric-particles-v1fabric-particles-v1 fabric-recipe-api-v1fabric-recipe-api-v1 fabric-registry-sync-v0fabric-registry-sync-v0 fabric-renderer-api-v1fabric-renderer-api-v1 fabric-renderer-indigofabric-renderer-indigo fabric-rendering-fluids-v1fabric-rendering-fluids-v1 fabric-rendering-v1fabric-rendering-v1 fabric-resource-conditions-api-v1fabric-resource-conditions-api-v1 fabric-resource-loader-v0fabric-resource-loader-v0 fabric-screen-api-v1fabric-screen-api-v1 fabric-screen-handler-api-v1fabric-screen-handler-api-v1 fabric-sound-api-v1fabric-sound-api-v1 fabric-transfer-api-v1fabric-transfer-api-v1 fabric-transitive-access-wideners-v1fabric-transitive-access-wideners-v1 gradlegradle srcsrc .editorconfig.editorconfig .gitattributes.gitattributes .gitignore.gitignore CONTRIBUTING.mdCONTRIBUTING.md HEADERHEADER LICENSELICENSE README.mdREADME.md build.gradlebuild.gradle checkstyle.xmlcheckstyle.xml crowdin.ymlcrowdin.yml gradle.propertiesgradle.properties gradlewgradlew gradlew.batgradlew.bat settings.gradlesettings.gradle View all filesRepository files navigationREADMEApache-2.0 licenseFabric API
Essential hooks for modding with Fabric.
Fabric API is the library for essential hooks and interoperability mechanisms for Fabric mods. Examples include:
Exposing functionality that is useful but difficult to access for many mods such as particles, biomes and dimensions
Adding events, hooks and APIs to improve interopability between mods.
Essential features such as registry synchronization and adding information to crash reports.
An advanced rendering API designed for compatibility with optimization mods and graphics overhaul mods.
Also check out Fabric Loader, the (mostly) version-independent mod loader that powers Fabric. Fabric API is a mod like any other Fabric mod which requires Fabric Loader to be installed.
For support and discussion for both developers and users, visit the Fabric Discord server.
Using Fabric API to play with mods
Make sure you have installed fabric loader first. More information about installing Fabric Loader can be found here.
To use Fabric API, download it from CurseForge, GitHub Releases or Modrinth.
The downloaded jar file should be placed in your mods folder.
Using Fabric API to develop mods
To set up a Fabric development environment, check out the Fabric example mod and follow the instructions there. The example mod already depends on Fabric API.
To include the full Fabric API with all modules in the development environment, add the following to your dependencies block in the gradle buildscript:
Groovy DSL
modImplementation "net.fabricmc.fabric-api:fabric-api:FABRIC_API_VERSION"
Kotlin DSL
modImplementation("net.fabricmc.fabric-api:fabric-api:FABRIC_API_VERSION")
Alternatively, modules from Fabric API can be specified individually as shown below (including module jar to your mod jar):
Groovy DSL
// Make a collection of all api modules we wish to use
Set
"fabric-api-base",
"fabric-command-api-v1",
"fabric-lifecycle-events-v1",
"fabric-networking-api-v1"
]
// Add each module as a dependency
apiModules.forEach {
include(modImplementation(fabricApi.module(it, FABRIC_API_VERSION)))
}
Kotlin DSL
// Make a set of all api modules we wish to use
setOf(
"fabric-api-base",
"fabric-command-api-v1",
"fabric-lifecycle-events-v1",
"fabric-networking-api-v1"
).forEach {
// Add each module as a dependency
modImplementation(fabricApi.module(it, FABRIC_API_VERSION))
}
Instead of hardcoding version constants all over the build script, Gradle properties may be used to replace these constants. Properties are defined in the gradle.properties file at the root of a project. More information is available here.
Contributing
See something Fabric API doesn't support, a bug or something that may be useful? We welcome contributions to improve Fabric API.
Make sure to read the development guidelines.
Modules
Fabric API is designed to be modular for ease of updating. This also has the advantage of splitting up the codebase into smaller chunks.
Each module contains its own README.md* explaining the module's purpose and additional info on using the module.
* The README for each module is being worked on; not every module has a README at the moment
About
Essential hooks for modding with Fabric.
Topics
java
minecraft
fabric
hacktoberfest
Resources
Readme
License
Apache-2.0 license
Activity
Custom properties
Stars
2k
stars
Watchers
41
watching
Forks
365
forks
Report repository
Releases
771
[1.20.4] Fabric API 0.96.4+1.20.4
Latest
Feb 25, 2024
+ 770 releases
Contributors
134
+ 120 contributors
Languages
Java
100.0%
Footer
© 2024 GitHub, Inc.
Footer navigation
Terms
Privacy
Security
Status
Docs
Contact
Manage cookies
Do not share my personal information
You can’t perform that action at this time.
use | Fabric
use | Fabric
Fabric
Download
Blog
Develop
Discuss
Wiki
use
The contents of this website, unless otherwise indicated, are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG.
欢迎访问 Fabric 中文文档 — Fabric 文档
欢迎访问 Fabric 中文文档 — Fabric 文档
欢迎访问 Fabric 中文文档¶
本站覆盖了 Fabric 的用法和 API 文档,包括变更历史和维护信息等 Fabric 基本信息见 Fabric 官方网站 。
入门教程¶
对于新用户,以及/或想大概了解 Fabric 基本功能的同学,请访问 概览 & 教程 。本文档的其它部分将假设你至少已经大概熟悉其中的内容。
使用文档¶
下面的列表包含了 Fabric (非 API 部分)文档的主要章节。这些内容对 概览 & 教程 中提到的概念进行了扩展,同时还覆盖了一些高级主题。
环境字典 env
运行环境即设置
环境即状态共享
其他考虑
环境变量完整列表
Execution model
Execution strategy
Defining tasks
Defining host lists
Intelligently executing tasks with execute
Failure handling
Connections
Password management
Leveraging native SSH config files
fab 选项和参数
基本应用
直接执行远程命令
命令行参数
Per-task arguments
配置文件
Fabfile 文件的结构和使用
指定 fabfile
引用 Fabric
定义任务并导入 callable 任务
与远程程序集成
合并 stdout 和 stderr
伪终端
两者结合
作为库使用
连接服务器
断开连接
最后注意
输出管理
输出等级
隐藏和/或显示输出级别
并行执行
它是如何运转的
如何使用
bubble 大小
行级输出 vs 比特级输出
SSH 行为
未知主机
已知主机但更换了密钥
定义任务
新式任务
传统任务
API 文档¶
Fabric 维护了两套根据代码中 docstring 自动生成的 API 文档(它们都十分详尽)。
核心 API¶
核心 API 是指构成 Fabric 基础构建块的函数、类和方法(例如 run 和 sudo )。而其他部分(下文的“扩展 API”和用户的 fabfile)都是在这些核心 API 的基础之上构建的。
提供彩色输出的函数
上下文管理器
装饰器
文档助手
网络
业务(Operation)
任务
实用工具
扩展 API¶
Fabric 的 扩展包 包括常用而有用的工具(通常是从用户的 fabfile 中合并进来的),可用于用户 I/O、修改远程文件等任务中。核心 API 倾向于保持小巧、不随意变更,扩展包则会随着更多的用户案例被解决并添加进来,而不断成长进化(同时尽量保持向后兼容)。
终端输出工具
与 Django 集成
文件和目录管理
项目工具
参与 & 测试¶
我们欢迎高级用户 & 开发者提交并帮助修复 bug,或者帮助开发新功能。
Fabric
Pythonic remote execution
Navigation
概览 & 教程
环境字典 env
Execution model
fab 选项和参数
Fabfile 文件的结构和使用
与远程程序集成
作为库使用
输出管理
并行执行
SSH 行为
定义任务
提供彩色输出的函数
上下文管理器
装饰器
文档助手
网络
业务(Operation)
任务
实用工具
终端输出工具
与 Django 集成
文件和目录管理
项目工具
运行 Fabric 的测试
Main website
快速搜索
输入相关的术语,模块,类或者函数名称进行搜索
Donate
Consider supporting the authors on Gratipay:
©2016 Jeff Forcier.
|
Powered by Sphinx 1.3.5
& Alabaster 0.7.7
|
Page source
Fabric Documentation
Fabric Documentation
Fabric Documentation is a work in progress. Report issues on GitHub. Skip to content Fabric DocumentationSearchKMain NavigationHomeDownloadContributeFabric DocumentationFabric APISwitch Version1.20.4 (latest)EnglishČeština (Česko)Deutsch (Deutschland)Español de EspañaFrançais (France)Italiano (Italia)한국어(대한민국)Polski (Polska)Русский (Россия)Українська (Україна)Tiếng Việt (Việt Nam)中文(台灣)GitHubDiscordEnglishČeština (Česko)Deutsch (Deutschland)Español de EspañaFrançais (France)Italiano (Italia)한국어(대한민국)Polski (Polska)Русский (Россия)Українська (Україна)Tiếng Việt (Việt Nam)中文(台灣)AppearanceGitHubDiscordFabric DocumentationThe official curated documentation for Fabric, a modding toolchain for Minecraft.️Developer GuidesOur curated developer guides, written by the community, span a wide range of topics from setting up a development environment to more advanced topics, such as rendering and networking.Get Started Player GuidesAre you a player looking to use mods powered by Fabric? Our player guides have you covered. These guides will help you in downloading, installing, and troubleshooting Fabric mods.Read More Want to Contribute? If you want to contribute to the Fabric Documentation, you can find the source code on GitHub, and the relevant contribution guidelines.