介绍
中文介绍正在准备中,下面暂时显示原文。
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;
}
}
常见问题
MetaAwareBlocks 支持哪些 Minecraft 版本?
MetaAwareBlocks 支持 Minecraft Java 版 1.7.10,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
MetaAwareBlocks 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
Midnight145 的其他作品
查看全部 →
Salis Arcana
by nicksitnikov, rndmorris 等
A collection of config, utility, and bug fix options for Thaumcraft 4
2,784
2 天前
Modrinth
LiteloaderLoader
by Midnight145
A Loader for your Liteloader
2,036
1 年前
Modrinth
Minecraft: Engineer Edition
by Midnight145
A mod that lets you play Minecraft with very large or small values of Pi
746
1 年前
Modrinth
评论
登录后评论和评分