Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

关于无法使用双层皮肤的解决方案 #5

Open
PonderFox0643 opened this issue Jun 5, 2023 · 1 comment
Open

关于无法使用双层皮肤的解决方案 #5

PonderFox0643 opened this issue Jun 5, 2023 · 1 comment

Comments

@PonderFox0643
Copy link

PonderFox0643 commented Jun 5, 2023

这里我不会编译,但是我的思路如下:
在文件tax/cute/mcinfoplugin/MCSkin.java和同文件夹下的MCInfo.java中调用图片的方法是
Image image = group.uploadImage(ExternalResource.create(Http.getHttp("ApiUrl.MC_BODY_SKIN" + uuid).getBytes()));

Image image = group.uploadImage(ExternalResource.create(Http.getHttp("ApiUrl.MC_HEAD_SKIN" + uuid).getBytes()));
其中在ApiUrl中使用的网站是https://crafatar.com/renders/body/和https://crafatar.com/renders/head/其实这个网站支持双层皮肤渲染的,调用方法是https://crafatar.com/renders/body/某uuid?overlay=true就可以了
按照程序逻辑我们只需要修改:在文件tax/cute/mcinfoplugin/
MCSkin.java:("ApiUrl.MC_BODY_SKIN" + uuid)改为(ApiUrl.MC_BODY_SKIN + uuid + "?overlay=true")
MCInfo.java:("ApiUrl.MC_HEAD_SKIN" + uuid)改为(ApiUrl.MC_HEAD_SKIN + uuid + "?overlay=true")
就可以了
由于我不会构建它,所以我只能提供我的思路了....

@PonderFox0643
Copy link
Author

希望意见会被采纳....

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant