-
Notifications
You must be signed in to change notification settings - Fork 8
多方向抓取 #298
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
base: master
Are you sure you want to change the base?
多方向抓取 #298
Conversation
balugaq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @NotNull SlimefunItemStack item, | ||
| @NotNull RecipeType recipeType, | ||
| ItemStack[] recipe) { | ||
| super(itemGroup, item, recipeType, recipe, NodeType.GRABBER); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
写一个新的NodeType.MULTI_GRABBER,而不是沿用 GRABBER
| } | ||
|
|
||
| @Override | ||
| protected void onTick(@Nullable BlockMenu blockMenu, @NotNull Block block) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
添加注解@javax.annotation.OverridingMethodsMustInvokeSuper
|
|
||
| addItem( | ||
| getNorthSlot(), | ||
| getMultiDirectionalSlotPane(BlockFace.NORTH, Material.AIR, false), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
init阶段不应将后续会替换为有效背景板的槽位设置为AIR,应当设置为Icon.GRAY_BACKGROUND或其他背景板,避免玩家过早放入物品导致物品丢失






先放者