More Outputs API 图标

More Outputs API

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 2.0.0.1-1.21
本资源为搬运资源,原资源地址: https://modrinth.com/mod/more-outputs-api
资源信息

Minecraft 版本: 1.21

平台: fabric

标签: library utility

资源介绍

More Outputs API

You should only download this mod if you are a developer who wants to use the lib/api or when some mod requires this lib/api.

What is this mod?

Ever wanted to make recipes with more than one output? Now is the chance to do so! This mod is a library for developers to add more than one output to their recipes. This 'mod' will not do ANYTHING on its own!
This lib/api makes it much easier for developers to add recipes with more than one output to their mod. Before, some developers made custom recipe classes that did have the neccessary requirements but for most it was impossible.
The lib is aimed at devs who don't know how to start or just are generally new to modding but could also be a valuable asset to more experienced modders.

It works by instead of only implementing Recipe, you also implement one of the classes from this mod.
Short ex.:


public class SomeCustomRecipe implements Recipe<SimpleInventory>, Output2Recipe<SimpleInventory> {
    [... All methods that are needed to implement from Recipe ...]

    //All methods implemented by Output2Recipe
    @Override
    public ItemStack getSecondResult(DynamicRegistryManager registryManager) {
      return secondOutput;
    }

    @Override
    public ItemStack craftSecond(DynamicRegistryManager registryManager) {
      return secondOutput;
    }

}

This will make sure you can use those methods outside the SomeCustomRecipe for registering screenhandlers, block entities etc. An indepth tutorial with a complete guide on how to use this is found on the wiki

Features: 

  • Up to 4 possible outputs
  • Included example implementation (Not yet implemented)

Issues:

Please report issues to the github repository. Suggestions may also be submitted trough the issues. If you have any other questions, please ask them personally via discord. Username: scaredrabbitnl_. (Support server is coming sometime)

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Shearable Vines - NeoForge

价格:0 墨喵币
下载量:0

查看详情
The ClickCrystals+ Pack!

价格:0 墨喵币
下载量:0

查看详情
Deer Cracker Mod

价格:0 墨喵币
下载量:0

查看详情
ShowDamage

价格:0 墨喵币
下载量:0

查看详情