本帖最后由 a20001017 于 2014-6-23 22:22 编辑

Dinnerbone:Trying to squash away the last uses of "Block" and "block data" in the code (to turn into "blockstate"). Terrain generation, tricky stuff.Dinnerbone:Right now you have two pools of "information" and if you want to know what a block is, you look in the first then at the second...
Dinnerbone:After this it's just easy. That block is smooth stone brick, or that block is red stained glass. Easy to code, easy to use, no lookups.
Dinnerbone:I'm still getting confused tweets so tl;dr: huge step for plugin API and ultimately a very big performance optimization.

Dinnerbone: 试着赶跑最后一个在代码中用“方块数据”的方块(改成“方块状态”)。【与其相关的】地形生成还是一件很棘手的事情。
Dinnerbone: 现在你有两部分“信息”,如果你想要知道这个方块的详细信息,你看第一组,然后是第二组…
Dinnerbone: 在这项工作之后就简单啦。这个方块是平滑石砖,这是红色染色玻璃。容易码代码,容易用,不用再查了。
Dinnerbone: 我还在奇怪推文,距离Plugin API跃进了一大步,并且有十分大的性能优化。




在之前,晚餐骨他们已经将很多方块转换成方块数据

意思就是比如有个南瓜,原来的朝向由一个数据值存储,现在它的朝向直接包含在ID中,主要是为了Plugin API作准备,现在这项工作应该基本完成了
看不懂的可以翻一下过往新闻