Render_Projectile.java 文件源码

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

项目:minecraft-quiverbow 作者:
@Override
protected ResourceLocation getEntityTexture(Entity entity)
{       
    _ProjectileBase shot = (_ProjectileBase) entity;
    String loc = shot.getEntityTexturePath();

    if (loc != null) { return new ResourceLocation("quiverchevsky", loc); }
    else    // Texture path is null. Is this using an MC-internal texture?
    {           
        byte[] type = shot.getRenderType();

        if (type[0] == 1) { return new ResourceLocation("textures/entity/arrow.png"); } // Regular arrow
    }

    return TextureMap.locationItemsTexture; // Fallback. Can't remember the damn texture map location, which is what I need for items
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号