@ Override public void render ( Block block , MalisisRenderer < ? extends TileEntity > renderer ) { if ( renderer . getRenderType ( ) == RenderType . BLOCK && animatedShapes . size ( ) != 0 ) onRender ( renderer . getWorldAccess ( ) , renderer . getPos ( ) , renderer . getBlockState ( ) ) ; model . resetState ( ) ; if ( renderer . getRenderType ( ) == RenderType . BLOCK ) model . rotate ( DirectionalComponent . getDirection ( renderer . getBlockState ( ) ) ) ; staticShapes . forEach ( name -> model . render ( renderer , name , rp ) ) ; if ( renderer . getRenderType ( ) == RenderType . ITEM ) animatedShapes . forEach ( name -> model . render ( renderer , name , rp ) ) ; }
Only called for BLOCK and ITEM render type