zh_cn:tutorial:registry
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
zh_cn:tutorial:registry [2022/12/15 23:48] – [注册类型] solidblock | zh_cn:tutorial:registry [2023/05/19 14:11] (current) – [注册内容] solidblock | ||
---|---|---|---|
Line 23: | Line 23: | ||
使用'' | 使用'' | ||
- | <code java> | + | <yarncode |
- | public static <T> T register(Registry<? super T> registry, | + | public static <T> T method_10230(class_2378<? super T> registry, |
- | return ((MutableRegistry)registry).add(id, entry); | + | return ((class_2385)registry).method_10272(id, entry); |
} | } | ||
- | </code> | + | </yarncode> |
**registry** - 你需要将内容添加到的注册表的实例。位于'' | **registry** - 你需要将内容添加到的注册表的实例。位于'' | ||
zh_cn/tutorial/registry.1671148139.txt.gz · Last modified: 2022/12/15 23:48 by solidblock