ClientProxy.java 文件源码

java
阅读 20 收藏 0 点赞 0 评论 0

项目:CORE-API 作者:
/**
 * Adds capes to our team Player Entities. May become invalid as soon as the
 * UUID system is fully implemented by Mojang.
 */
@Override
public void registerTeamCapes()
{
    final String capeURL = "http://www.mccapes.com/GalleryImages6x/0c1865261d2d0247fb6b776bdc5d6730.png"; // Temporary.
                                                                                                          // Can
                                                                                                          // someone
                                                                                                          // make
                                                                                                          // us
                                                                                                          // a
                                                                                                          // proper
                                                                                                          // cape?
                                                                                                          // We
                                                                                                          // should
                                                                                                          // be
                                                                                                          // able
                                                                                                          // to
                                                                                                          // have
                                                                                                          // a
                                                                                                          // HD
                                                                                                          // one
                                                                                                          // I
                                                                                                          // think!

    String[] teamMembers =
        { "nxsupert, ProfessorVennie", "roborave", "InternetAthiest",
                "MushroomLT" }; // Please add your minecraft user names
                                // here. You will get a cape if you do so!

    ThreadDownloadImageData capeImage = new ThreadDownloadImageData(
            capeURL, null, null);
    Minecraft mcInstance = Minecraft.getMinecraft();

    for (String username : teamMembers)
    {
        mcInstance.renderEngine.loadTexture(new ResourceLocation("cloaks/"
                + username), capeImage);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号