跳到正文

Mine Flux API

作者:KernelPanic

Cross platform energy api that is compatible with forge energy and works on both forge and fabric

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Mine Flux

 

Mine Flux API is a cross platform energy api that aims to bridge the gap between forge energy and fabric. The forge version is completely compatible with existing forge energy systems. the fabric version brings its own version of energy that behaves exactly the same way as the forge version.

 

The unit is MF and the conversion ratio is 1 MF = 1 FE = 1 RF

 

THIS MOD REQUIRES ARCHITECTURY API

 

For developers wishing to use this api:

Your BlockEntity must implement IMFContainer and return the IMFStorage for the side. you will have to check if the Object parameter is an instance of Side.

for Forge BlockEntities, you must also use the Forge Energy Capability and feed it your IMFStorage based on the Side. Don’t worry MFStorageForge implements both IMFStorage and forge’s IEnergyStorage

On the forge side you can get the IMFStorage using Forge Energy capability. on fabric side you cast the BlockEntity/Item to IMFContainer and call getStorageFor() and pass in a Side/ItemStack. There are some

helper methods for this in EnergyUtil

 

This mod now adds an example block and item. they are fully functional so they can be used in survival 🙂

 

常见问题

Mine Flux API 支持哪些 Minecraft 版本?

Mine Flux API 支持 Minecraft Java 版 1.18–1.18.1,共 2 个版本,可用的加载器:Fabric / Forge。下载时注意选择和你游戏版本一致的文件。

Mine Flux API 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

KernelPanic 的其他作品

查看全部 →