RenderDimensionSliceEntity.java 文件源码

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

项目:Factorization 作者:
void renderDamage(World world, DestroyBlockProgress damage, TextureAtlasSprite[] icons, BlockRendererDispatcher brd, float partial) {
    IBlockState bs = world.getBlockState(damage.getPosition());
    Block block = bs.getBlock();
    if (block.getMaterial() == Material.air) return;
    int dmg = damage.getPartialBlockDamage();
    brd.renderBlockDamage(bs, damage.getPosition(), icons[dmg], world);
    if (block.hasTileEntity(bs)) {
        TileEntity te = world.getTileEntity(damage.getPosition());
        TileEntityRendererDispatcher.instance.renderTileEntity(te, partial, damage.getPartialBlockDamage());
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号