Skip to content

Conversation

@0999312
Copy link
Contributor

@0999312 0999312 commented Jun 5, 2018

Entity export update.

这是关于实体导出的PR一份。
(某站长要导入实体资料,于是就有了这个东西)
目前包括实体中英文名称+实体图像Base64(非Entitylivingbase不渲染)
具体请在代码中查看

Entity export update.

// Since refreshResources takes a long time, only refresh once for all the items
minecraft.getLanguageManager().setCurrentLanguage(new Language("zh_CN", "中国", "简体中文", false));
minecraft.getLanguageManager().setCurrentLanguage(new Language("zh_CN", "涓浗", "绠�浣撲腑鏂�", false));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

乱码了_(:з」∠)_,记得把编码调成UTF8

name = null;
englishName = null;
registerName = itemStack.getItem().getRegistryName().toString();
metadata=itemStack.getMetadata();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个应该不用删掉,某些物品不同metadata是不同东西,但有相同名字的

GlStateManager.enableColorMaterial();
GlStateManager.pushMatrix();
GlStateManager.translate(0, 0, 50.0F);
GlStateManager.scale(-scale, scale, scale);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其实实体导出最重要的是这里,这个scale对于不同的mob是会改变的,有些mob太大了需要缩小

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants