我正在制作一个我的世界模组,我不知道哪个更推荐。
Block[] blocks = new Block[] {BlueBlock, MeatBlock, ....};
for (Block bls : blocks)
GameRegistry.registerBlock(bls, bls.getUnlocalizedName().substring(5));
或者
GameRegistry.registerBlock(BlueBlock, "BlueBlock");
GameRegistry.registerBlock(MeatBlock, "MeatBlock");
GameRegistry.registerBlock(..., "...");