MetaAwareBlocks
作者:rebot | 分类:模组
价格:0 墨喵币
下载量:0
点赞:0
版本 0.0.3-alpha
本资源为搬运资源,原资源地址:
https://modrinth.com/mod/metaawareblocks
资源信息
Minecraft 版本: 1.7.10
平台: forge
标签: library
资源介绍
MetaAwareBlocks
As of now this only transforms Minecraft's code, and currently that is all that is planned due to other mods being a compatibility nightmare without any great way to go about things automatically. I'd have to write mixins for every single mod, and it's just not practical. If someone wants to create pull requests adding support for a mod, that's great, but for now it only supports Minecraft's native code.
This is a library used to add meta-aware functionality for several (primarily rendering) functions inside of net.minecraft.block.Block.
Usage:
Creating a new block:
class NewBlock implements IMetaAware {
...
@Override
public boolean renderAsNormalBlock(IBlockAccess world, int x, int y, int z) {
return world.getBlockMetadata(world, x, y, z) != 0;
}
...
}
Mixin into a preexisting block:
@Mixin(NewBlock.class)
public abstract class MixinNewBlock implements IMetaAware {
@Override
public boolean renderAsNormalBlock(IBlockAccess world, int x, int y, int z) {
return world.getBlockMetadata(world, x, y, z) != 0;
}
}
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
请 登录 后发表评论。
举报此资源
请登录后举报
暂无评论,抢个沙发吧~