public void Playerjoin(EntityJoinLevelEvent event){
PoseStack matrix = new PoseStack();
this.gui.blit(matrix,1, 1, 34, 9, 9, 9);
}
我想在客户端界面画个苹果,玩家一上线就画怎么在matrix里添加苹果??之前开发过插件,这是第一次开发mod,很多类都不太熟悉在网上找了好久都没整明白怎么弄求大佬帮忙看一看懂得大佬应该一眼就知道怎么弄
PoseStack matrix = new PoseStack();
this.gui.blit(matrix,1, 1, 34, 9, 9, 9);
}
我想在客户端界面画个苹果,玩家一上线就画怎么在matrix里添加苹果??之前开发过插件,这是第一次开发mod,很多类都不太熟悉在网上找了好久都没整明白怎么弄求大佬帮忙看一看懂得大佬应该一眼就知道怎么弄

PoseStack matrix = new PoseStack();和 this.gui.blit(matrix,1, 1, 34, 9, 9, 9);这两句话之间应该补一句话就行

建议看看那些服务器反矿物透视的mod,他们相当于在客户端画一个假的矿物

这。。。我不太懂






PoseStack 不是放图的···这个是矩阵,用来对顶点进行变换的,放图的逻辑在 blit 里。
如果你要画苹果可能需要的是 ItemRender
如果你要画苹果可能需要的是 ItemRender
秦千久 发表于 2022-9-3 19:11
PoseStack 不是放图的···这个是矩阵,用来对顶点进行变换的,放图的逻辑在 blit 里。
如果你要画苹果可 ...
能详细说下嘛,或者有啥资料嘛

滨海小树 发表于 2022-9-3 19:26
能详细说下嘛,或者有啥资料嘛
https://zomb-676.github.io/CobaltDocs/#/render/vertexLife
你先看下这个吧,了解下基础知识
这个内容不好教···我只能说你翻一下原版调用 ItemRender 的部分,抄原版的
如果你用的 idea,ctrl + 左键就能查调用,eclipse 我没用过不清楚
秦千久 发表于 2022-9-3 19:54
https://zomb-676.github.io/CobaltDocs/#/render/vertexLife
你先看下这个吧,了解下基础知识
这个内容 ...
非常感谢
