这是一个为我的模组提供的库,包含多平台物品与方块注册功能,以及支持者特权,例如不同的装饰外观。
以下是一个在 Minecraft 版本 1.20.1 中注册物品的示例:
public static final GuitaRegistry ITEMS = GuitaRegistries.create(Registries.ITEM, MOD_ID);
public static final GuitaRegistryEntry CUSTOM_ITEM = ITEMS.register("custom", () -> new Item(new Item.Settings()));
public static void init() { ITEMS.init(); }
其中 init() 方法是模组的初始化器。
通过 Modrinth Maven 将此模组添加到你的 build.gradle 文件中,示例如下:
modImplementation "maven.modrinth:macu-lib:${project.maculib_version}"
如果你遇到任何问题或有建议,欢迎:
友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人数:1,303,054 | 历史访问人次:1,613,617
今日访问人数:16,649 | 今日访问人次:17,961
昨日访问人数:19,876 | 昨日访问人次:23,068
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6