Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ch.21): custom recipe. #67

Open
wants to merge 3 commits into
base: bleeding
Choose a base branch
from
Open

feat(ch.21): custom recipe. #67

wants to merge 3 commits into from

Conversation

3TUSK
Copy link
Member

@3TUSK 3TUSK commented Mar 23, 2020

Synopsis / 简介

自定义合成。

Description / 详细说明

介绍了如何实现类似原版工具修复、地图扩展等有特殊逻辑的合成。

Justification / 理由

之前说好的把这个 https://www.mcbbs.net/thread-888719-2-2.html 里的回答搬过来一直在鸽。

Remarks / 备注

目录已经有这个了所以就没再动 SUMMARY.md

@3TUSK 3TUSK added Type: New Content Requesting new contents. This also applies to Pull Request. Status: Reviewing This is finished; we are reviewing it. labels Mar 23, 2020
@SeraphJACK
Copy link
Contributor

Yuki 又不见力

@SeraphJACK
Copy link
Contributor

不提一下 getRemainingItems 么?

@3TUSK
Copy link
Member Author

3TUSK commented Mar 24, 2020

配方本身倒可以不用json注册。

@liach 就是因为这个。我更担心有人用这个把所有合成的注册全写代码里……

Apparently it is also used in sorting? Don't have time to verify but it
is not something important either.
@liach
Copy link

liach commented Mar 24, 2020

也可以介绍一下json recipe在registry event分发之前就已经加载了,而且registry event里面注册的recipe好像不能覆盖json读的recipe,不知道有没有意义

@3TUSK
Copy link
Member Author

3TUSK commented Mar 25, 2020

而且registry event里面注册的recipe好像不能覆盖json读的recipe

可以。

@3TUSK 3TUSK requested a review from SeraphJACK April 24, 2020 06:06
@Override
public NonNullList<Ingredient> getIngredients() {
// 返回该合成的输入。
return NonNullList.create();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getContainerItem 做个简单的示范?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Reviewing This is finished; we are reviewing it. Type: New Content Requesting new contents. This also applies to Pull Request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants