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());
}
}
RenderDimensionSliceEntity.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:Factorization
作者:
评论列表
文章目录