@Override
@Strippable(side = Side.CLIENT)
public ResourceLocation getLogoTexture() {
if (this.logo == null) {
try {
URL url = this.getClass().getProtectionDomain().getCodeSource().getLocation();
InputStream stream = new URL(url.toString() + "/logo.png").openStream();
BufferedImage image = ImageIO.read(stream);
DynamicTexture texture = new DynamicTexture(image);
this.logo = Minecraft.getMinecraft().getTextureManager().getDynamicTextureLocation("mods/" + getModID(), texture);
stream.close();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return logo;
}
OMLModInfo.java 文件源码
java
阅读 14
收藏 0
点赞 0
评论 0
项目:OpenModLoader
作者:
评论列表
文章目录